public interface ConfigurationBuilder
Modifier and Type | Method and Description |
---|---|
<T> T |
as(java.lang.Class<T> clazz)
Get configuration as singleton resource and its properties mapped to the given annotation class.
|
<T> T |
asAdaptable(java.lang.Class<T> clazz)
Get configuration as singleton configuration resource and adapt it to the given class.
|
<T> java.util.Collection<T> |
asAdaptableCollection(java.lang.Class<T> clazz)
Get collection of configuration resources and adapt them to the given class.
|
<T> java.util.Collection<T> |
asCollection(java.lang.Class<T> clazz)
Get collection of configuration resources with their properties mapped to the given annotation class.
|
ValueMap |
asValueMap()
Get configuration as singleton resource and return its properties as value map.
|
java.util.Collection<ValueMap> |
asValueMapCollection()
Get collection of configuration resources with their properties mapped to the given annotation class.
|
ConfigurationBuilder |
name(java.lang.String configName)
Define configuration name.
|
ConfigurationBuilder name(java.lang.String configName)
as(Class)
and asCollection(Class)
methods, mandatory for the others.configName
- Relative path<T> T as(java.lang.Class<T> clazz)
name(String)
method it is derived
from the annotation interface class name.T
- Annotation class typeclazz
- Annotation interface class<T> java.util.Collection<T> asCollection(java.lang.Class<T> clazz)
name(String)
method it is derived
from the annotation interface class name.T
- Annotation class typeclazz
- Annotation interface classValueMap asValueMap()
java.util.Collection<ValueMap> asValueMapCollection()
<T> T asAdaptable(java.lang.Class<T> clazz)
T
- Annotation class typeclazz
- Class that can be adapted from a Resource
<T> java.util.Collection<T> asAdaptableCollection(java.lang.Class<T> clazz)
T
- Annotation class typeclazz
- Class that can be adapted from a Resource
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"