|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationPropertiesFactory
Interface to create instances of ConfigurationProperties
.
Implementations require to provide a public constructor without arguments.
Method Summary | |
---|---|
void |
addPropertyProviders(Collection<PropertyProvider> providers) Adds the given providers of properties as additional property definitions. |
void |
addPropertyProviders(PropertyProvider... providers) Adds the given providers of properties as additional property definitions. |
void |
addRootLocations(Collection<URL> urls) Adds the given URLs to the locations to search for property declarations and definitions. |
void |
addRootLocations(URL... urls) Adds the given additional URLs to the locations to search for property declarations and definitions. |
ConfigurationProperties |
create(ConfigurationKey<?> key) Returns the configuration properties for the given key . |
ConfigurationProperties |
createDefault() Returns the configuration for the default key. |
ConfigurationPropertiesManagement |
createDefaultManagement() Returns the management view on a configuration for the default key. |
ConfigurationPropertiesManagement |
createManagement(ConfigurationKey<?> key) Returns the configuration properties for the given key . |
FactoryConfiguration |
getFactoryConfiguration() Returns the factory configuration and changes values. |
Collection<ConfigurationKey<?>> |
getRegisteredConfigurationKeys() Returns a list of keys to the registered configurations. |
PropertyDescriptorRegistry |
getRegistry() Returns the registry of declarations used by all created configurations. |
Collection<ConfigurationKey<?>> |
materialize() Materializes all configurations found by this factory. |
Method Detail |
---|
FactoryConfiguration getFactoryConfiguration()
Since factories are not thread-safe according to configuration changes, it is expected that the factory is configured prior to any creation calls.
void addRootLocations(Collection<URL> urls)
declarations
and definitions. Property definitions are e.g. properties files or similar resources that define the actual value of a property.
Adding URLs only affects later creations of ConfigurationProperties
instances.
urls
- the URLs to add as search location. If the list is empty or
urls
is
null
, nothing is added without a warning.
void addRootLocations(URL... urls)
declarations
and definitions. Property definitions are e.g. properties files or similar resources that define the actual value of a property.
Adding URLs only affects later creations of ConfigurationProperties
instances.
urls
- the URLs to add as search location. If the list is empty or
urls
is
null
, nothing is added without a warning.
void addPropertyProviders(Collection<PropertyProvider> providers)
Adding providers only affects later creations of ConfigurationProperties
instances.
providers
- property providers for additional property name-value pairs. If the list is empty or
providers
is
null
, nothing is added without a warning.
void addPropertyProviders(PropertyProvider... providers)
Adding providers only affects later creations of ConfigurationProperties
instances.
providers
- property providers for additional property name-value pairs. If the list is empty or
providers
is
null
, nothing is added without a warning.
ConfigurationProperties create(ConfigurationKey<?> key) throws NullPointerException, ConfigurationException
key
. May return a cached instance.
key
- the identifier of the configuration properties that is requested.
null
.
NullPointerException
- if
key
is
null
.
ConfigurationException
- on any problem loading the configuration properties.
createManagement(ConfigurationKey)
,
EnvAppConfigurationKeyHelper
ConfigurationPropertiesManagement createManagement(ConfigurationKey<?> key) throws NullPointerException, ConfigurationException
key
. May return a cached instance.
key
- the identifier of the configuration properties that is requested.
null
.
NullPointerException
- if
key
is
null
.
ConfigurationException
- on any problem loading the configuration properties.
create(ConfigurationKey)
,
EnvAppConfigurationKeyHelper
ConfigurationProperties createDefault() throws ConfigurationException
null
.
ConfigurationException
- on any problem loading the configuration properties.
ConfigurationPropertiesManagement createDefaultManagement() throws ConfigurationException
null
.
ConfigurationException
- on any problem loading the configuration properties.
Collection<ConfigurationKey<?>> getRegisteredConfigurationKeys()
PropertyDescriptorRegistry getRegistry()
Collection<ConfigurationKey<?>> materialize()
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |