public interface ConfigurationProviderSpi
Configuration
instances in a system. In SE this may be a true singleton containing exact one Configuration
instance, whereas in Java EE and other more complex environments instances may be returned depending the current
runtime context.| Modifier and Type | Method and Description |
|---|---|
Configuration |
createConfiguration(ConfigurationContext context)
Create a
Configuration instance using the given context. |
Configuration |
getConfiguration()
Access the current
Configuration. |
ConfigurationContext |
getConfigurationContext()
Deprecated.
Will be removed in favour of
Configuration.getContext(). |
ConfigurationContextBuilder |
getConfigurationContextBuilder()
Creates a new
ConfigurationContextBuilder instance. |
boolean |
isConfigurationContextSettable()
Deprecated.
|
boolean |
isConfigurationSettable()
Method that allows to determine if a new
Configuration can be applied
programmatically. |
void |
setConfiguration(Configuration config)
This method allows to replace the current
Configuration with a new
instance. |
void |
setConfigurationContext(ConfigurationContext context)
Deprecated.
|
Configuration getConfiguration()
Configuration.Configuration instance, never null.Configuration createConfiguration(ConfigurationContext context)
Configuration instance using the given context. The configuration
created hereby must respect the artifacts provided by its context (property sources,
filters, converters, policies etc), including their ordering and significance.context - the context to be used, not null.ConfigurationContextBuilder getConfigurationContextBuilder()
ConfigurationContextBuilder instance.ConfigurationContextBuilder, never null.void setConfiguration(Configuration config)
Configuration with a new
instance. This can be used to update the configuration with a new one, e.g. because some of the
data has changed and must be updated. It is the responsibility of the ConfigurationProvider to trigger
corresponding update events for the current Configuration.config - the new Configuration to be applied.UnsupportedOperationException - if the current provider is read-only.boolean isConfigurationSettable()
Configuration can be applied
programmatically.setConfiguration(org.apache.tamaya.Configuration) is supported
by the current implementation.setConfiguration(org.apache.tamaya.Configuration)@Deprecated ConfigurationContext getConfigurationContext()
Configuration.getContext().ConfigurationContext.ConfigurationContext, never null.@Deprecated void setConfigurationContext(ConfigurationContext context)
setConfiguration(Configuration)ConfigurationContext with a new
instance. This can be used to update the context with a new one, e.g. because some of the configuration
data has changed and must be updated. It is the responsibility of the ConfigurationProvider to trigger
corresponding update event for the current ConfigurationContext or
Configuration.context - the new ConfigurationContext to be applied.UnsupportedOperationException - if the current provider is read-only.@Deprecated boolean isConfigurationContextSettable()
isConfigurationSettable()ConfigurationContext can be applied
programmatically.setConfigurationContext(org.apache.tamaya.spi.ConfigurationContext) is supported
by the current implementation.setConfigurationContext(org.apache.tamaya.spi.ConfigurationContext)Copyright © 2014–2017 Apache Software Foundation. All rights reserved.