T
- The annotation that this public abstract class ConfigApply<T extends Annotation> extends Object
PropertyStore
from an annotation (e.g. BeanConfig
).Modifier | Constructor and Description |
---|---|
protected |
ConfigApply(Class<T> c,
VarResolverSession r)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
apply(AnnotationInfo<T> a,
PropertyStoreBuilder ps)
Apply the specified annotation to the specified property store builder.
|
boolean |
bool(String in)
Resolves the specified string and converts it to a boolean.
|
protected int |
integer(String in,
String loc)
Resolves the specified string and converts it to an int.
|
protected ObjectMap |
objectMap(String[] in,
String loc)
Resolves the specified strings and converts it to an ObjectMap.
|
protected ObjectMap |
objectMap(String in,
String loc)
Resolves the specified string and converts it to an ObjectMap.
|
protected String |
string(String in)
Resolves the specified string.
|
protected String[] |
strings(String in)
Resolves the specified string as a comma-delimited list of strings.
|
protected String[] |
strings(String[] in)
Resolves the specified strings in the string array.
|
protected Map<String,String> |
stringsMap(String[] in,
String loc)
Resolves the specified strings as a maps of strings-to-strings.
|
protected Visibility |
visibility(String in,
String loc)
Resolves the specified string and converts it to a Visibility.
|
protected ConfigApply(Class<T> c, VarResolverSession r)
c
- The annotation class.r
- The string resolver to use for resolving strings.public abstract void apply(AnnotationInfo<T> a, PropertyStoreBuilder ps)
a
- The annotation.ps
- The property store builder.protected String string(String in)
in
- The string containing variables to resolve.protected String[] strings(String[] in)
in
- The string array containing variables to resolve.protected String[] strings(String in)
in
- The CDL string containing variables to resolve.protected Map<String,String> stringsMap(String[] in, String loc)
in
- The string array containing variables to resolve.loc
- The annotation field name.public boolean bool(String in)
in
- The string containing variables to resolve.protected int integer(String in, String loc)
in
- The string containing variables to resolve.loc
- The annotation field name.protected Visibility visibility(String in, String loc)
in
- The string containing variables to resolve.loc
- The annotation field name.protected ObjectMap objectMap(String[] in, String loc)
in
- The strings to be concatenated and parsed into an ObjectMapl.loc
- The annotation field name.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.