C - Concrete ConfigPropertySet type to buildpublic static interface ConfigPropertySet.Builder<C extends ConfigPropertySet>
ConfigPropertySets bound to property data sources.| Modifier and Type | Method and Description |
|---|---|
C |
build()
Build the
ConfigPropertySet instance |
ConfigPropertySet.Builder<C> |
withDefaultPropertySources()
Add default configuration property sources using
DefaultConfig.defaultConfigPropertyProviders() |
ConfigPropertySet.Builder<C> |
withDefaultPropertySources(ClassLoader classLoader)
Add default configuration property sources using
DefaultConfig.defaultConfigPropertyProviders() and
given ClassLoader |
<T> ConfigPropertySet.Builder<C> |
withProperty(ConfigProperty<T> property,
T value)
Add given config property value.
|
ConfigPropertySet.Builder<C> |
withPropertySource(ConfigPropertyProvider provider)
Add given
ConfigPropertyProvider property source to ConfigPropertySet |
ConfigPropertySet.Builder<C> |
withPropertySource(InputStream propertiesInputStream)
Add given
InputStream property source to ConfigPropertySet |
ConfigPropertySet.Builder<C> |
withPropertySource(Map<String,Object> propertyMap)
Add given
Map property source to ConfigPropertySet |
ConfigPropertySet.Builder<C> |
withPropertySource(Properties properties)
Add given
Properties property source to ConfigPropertySet |
ConfigPropertySet.Builder<C> |
withPropertySource(String sourceFileName)
Add given
sourceFileName as property source to ConfigPropertySet, using default ClassLoader |
ConfigPropertySet.Builder<C> |
withPropertySource(String sourceFileName,
ClassLoader classLoader,
boolean lenient)
Add given
sourceFileName as property source to ConfigPropertySet |
ConfigPropertySet.Builder<C> |
withSystemPropertySource()
Add a property source using
System properties to ConfigPropertySet |
ConfigPropertySet.Builder<C> withDefaultPropertySources()
DefaultConfig.defaultConfigPropertyProviders()ConfigPropertySet.Builder<C> withDefaultPropertySources(ClassLoader classLoader)
DefaultConfig.defaultConfigPropertyProviders() and
given ClassLoaderclassLoader - ClassLoader to useConfigPropertySet.Builder<C> withPropertySource(ConfigPropertyProvider provider)
ConfigPropertyProvider property source to ConfigPropertySetprovider - ConfigPropertyProvider to addConfigPropertySet.Builder<C> withPropertySource(Map<String,Object> propertyMap)
Map property source to ConfigPropertySetpropertyMap - Property key-value sourceConfigPropertySet.Builder<C> withPropertySource(Properties properties)
Properties property source to ConfigPropertySetproperties - Properties instanceConfigPropertySet.Builder<C> withPropertySource(InputStream propertiesInputStream) throws ConfigPropertySet.ConfigurationException
InputStream property source to ConfigPropertySetpropertiesInputStream - Properties input streamConfigPropertySet.ConfigurationException - Error reading property sourceConfigPropertySet.Builder<C> withPropertySource(String sourceFileName) throws ConfigPropertySet.ConfigurationException
sourceFileName as property source to ConfigPropertySet, using default ClassLoadersourceFileName - Properties file nameConfigPropertySet.ConfigurationException - Error reading property sourceConfigPropertySet.Builder<C> withPropertySource(String sourceFileName, ClassLoader classLoader, boolean lenient) throws ConfigPropertySet.ConfigurationException
sourceFileName as property source to ConfigPropertySetsourceFileName - Properties file nameclassLoader - ClassLoader to use. If null, the default current classloader is usedlenient - true to ignore source loading errors and return a provider with an empty set of
propertiesConfigPropertySet.ConfigurationException - Error reading property sourceConfigPropertySet.Builder<C> withSystemPropertySource()
System properties to ConfigPropertySet<T> ConfigPropertySet.Builder<C> withProperty(ConfigProperty<T> property, T value)
T - Config property typeproperty - Config property for which to provide the value (not null)value - Config property valueC build()
ConfigPropertySet instanceCopyright © 2019 The Holon Platform. All rights reserved.