@ProviderType
public interface ConfigurationBuilder
Modifier and Type | Method and Description |
---|---|
<T> T |
as(Class<T> clazz)
Get configuration as singleton resource and its properties mapped to the given annotation class.
|
<T> T |
asAdaptable(Class<T> clazz)
Get configuration as singleton configuration resource and adapt it to the given class.
|
<T> Collection<T> |
asAdaptableCollection(Class<T> clazz)
Get collection of configuration resources and adapt them to the given class.
|
<T> Collection<T> |
asCollection(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.
|
Collection<ValueMap> |
asValueMapCollection()
Get collection of configuration resources with their properties mapped to the given annotation class.
|
ConfigurationBuilder |
name(String configName)
Define configuration name.
|
@Nonnull ConfigurationBuilder name(@Nonnull String configName)
as(Class)
and asCollection(Class)
methods, mandatory for the others.configName
- Relative path@Nonnull <T> T as(@Nonnull Class<T> clazz)
name(String)
method it is derived
from the annotation interface class name.T
- Annotation class typeclazz
- Annotation interface class@Nonnull <T> Collection<T> asCollection(@Nonnull Class<T> clazz)
name(String)
method it is derived
from the annotation interface class name.T
- Annotation class typeclazz
- Annotation interface class@Nonnull ValueMap asValueMap()
@Nonnull Collection<ValueMap> asValueMapCollection()
<T> T asAdaptable(@Nonnull Class<T> clazz)
T
- Annotation class typeclazz
- Class that can be adapted from a Resource
@Nonnull <T> Collection<T> asAdaptableCollection(@Nonnull Class<T> clazz)
T
- Annotation class typeclazz
- Class that can be adapted from a Resource
Copyright © 2017 The Apache Software Foundation. All rights reserved.