public interface ConfigurationContextBuilder
ConfigurationContext
.
Builders can be obtained in exactly two ways:
ConfigurationContext
,
by calling ConfigurationContext.toBuilder()
.ConfigurationProvider.getConfigurationContextBuilder()
.ConfigurationContext
instance can
be created and can be applied by calling
ConfigurationProvider.setConfigurationContext(org.apache.tamaya.spi.ConfigurationContext)
.ConfigurationContextBuilder setContext(ConfigurationContext context)
ConfigurationContext
instance. This
method will replace any existing data in the current builder with the data contained in the given
ConfigurationContext
.context
- the ConfigurationContext
instance to be used, not null.ConfigurationContextBuilder addPropertySources(PropertySource... propertySourcesToAdd)
PropertySource
s.
It is not needed for normal 'usage' by end users, but only for Extension Developers!propertySourcesToAdd
- the PropertySources to addConfigurationContextBuilder addPropertySources(Collection<PropertySource> propertySourcesToAdd)
PropertySource
s.
It is not needed for normal 'usage' by end users, but only for Extension Developers!propertySourcesToAdd
- the PropertySources to addConfigurationContextBuilder removePropertySources(String... propertySourcesNames)
PropertySource
s.
It is not needed for normal 'usage' by end users, but only for Extension Developers!propertySourcesNames
- the PropertySource names of the sources to removeConfigurationContextBuilder removePropertySources(Collection<String> propertySourcesNames)
PropertySource
s.
It is not needed for normal 'usage' by end users, but only for Extension Developers!propertySourcesNames
- the PropertySource names of the sources to removeConfigurationContextBuilder addPropertyFilters(PropertyFilter... filters)
filters
- the filters to addConfigurationContextBuilder addPropertyFilters(Collection<PropertyFilter> filters)
filters
- the filters to addConfigurationContextBuilder removePropertyFilters(PropertyFilter... filters)
filters
- the filters to removeConfigurationContextBuilder removePropertyFilters(Collection<PropertyFilter> filters)
filters
- the filters to remove<T> ConfigurationContextBuilder addPropertyConverter(TypeLiteral<T> typeToConvert, PropertyConverter<T> propertyConverter)
PropertyConverter
s.
It is not needed for normal 'usage' by end users, but only for Extension Developers!T
- the type of the type literaltypeToConvert
- the type for which the converter is forpropertyConverter
- the PropertyConverters to add for this typeConfigurationContextBuilder removePropertyConverters(TypeLiteral<?> typeToConvert, PropertyConverter<?>... converters)
typeToConvert
- the type which the converter is forconverters
- the converters to removeConfigurationContextBuilder removePropertyConverters(TypeLiteral<?> typeToConvert, Collection<PropertyConverter<?>> converters)
typeToConvert
- the type which the converter is forconverters
- the converters to removeConfigurationContextBuilder setPropertyValueCombinationPolicy(PropertyValueCombinationPolicy policy)
PropertyValueCombinationPolicy
used to evaluate the final
property values.policy
- the PropertyValueCombinationPolicy
used, not nullConfigurationContext build()
ConfigurationContext
based on the data set.Copyright © 2014–2016 Apache Software Foundation. All rights reserved.