public class DefaultConfigurationContext extends Object implements ConfigurationContext
| Constructor and Description |
|---|
DefaultConfigurationContext()
The first time the Configuration system gets invoked we do initialize
all our
PropertySources and
PropertyFilters which are known at startup. |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addPropertyConverter(TypeLiteral<T> typeToConvert,
PropertyConverter<T> propertyConverter) |
void |
addPropertySources(PropertySource... propertySourcesToAdd) |
Map<TypeLiteral<?>,List<PropertyConverter<?>>> |
getPropertyConverters() |
<T> List<PropertyConverter<T>> |
getPropertyConverters(TypeLiteral<T> targetType) |
List<PropertyFilter> |
getPropertyFilters() |
List<PropertySource> |
getPropertySources() |
PropertyValueCombinationPolicy |
getPropertyValueCombinationPolicy() |
ConfigurationContextBuilder |
toBuilder() |
public DefaultConfigurationContext()
PropertySources and
PropertyFilters which are known at startup.public void addPropertySources(PropertySource... propertySourcesToAdd)
addPropertySources in interface ConfigurationContextpublic List<PropertySource> getPropertySources()
getPropertySources in interface ConfigurationContextpublic <T> void addPropertyConverter(TypeLiteral<T> typeToConvert, PropertyConverter<T> propertyConverter)
addPropertyConverter in interface ConfigurationContextpublic Map<TypeLiteral<?>,List<PropertyConverter<?>>> getPropertyConverters()
getPropertyConverters in interface ConfigurationContextpublic <T> List<PropertyConverter<T>> getPropertyConverters(TypeLiteral<T> targetType)
getPropertyConverters in interface ConfigurationContextpublic List<PropertyFilter> getPropertyFilters()
getPropertyFilters in interface ConfigurationContextpublic PropertyValueCombinationPolicy getPropertyValueCombinationPolicy()
getPropertyValueCombinationPolicy in interface ConfigurationContextpublic ConfigurationContextBuilder toBuilder()
toBuilder in interface ConfigurationContextCopyright © 2014–2015 Apache Software Foundation. All rights reserved.