Configuration@Deprecated public final class ConfigurationProvider extends Object
Configuration of the whole application.| Modifier and Type | Method | Description |
|---|---|---|
static Configuration |
createConfiguration(ConfigurationContext context) |
Deprecated.
Creates a new configuration instance based on the given context.
|
static Configuration |
getConfiguration() |
Deprecated.
Access the current configuration.
|
static Configuration |
getConfiguration(ClassLoader classLoader) |
Deprecated.
Access the current configuration.
|
static ConfigurationBuilder |
getConfigurationBuilder() |
Deprecated.
Create a new
ConfigurationBuilder instance. |
static void |
setConfiguration(Configuration config) |
Deprecated.
This method allows replacement of the current default
Configuration with a new
instance. |
static void |
setConfiguration(Configuration config,
ClassLoader classLoader) |
Deprecated.
This method allows replacement of the current default
Configuration with a new
instance. |
public static Configuration getConfiguration()
null.public static Configuration getConfiguration(ClassLoader classLoader)
classLoader - the target classloader, not null.null.public static Configuration createConfiguration(ConfigurationContext context)
context - the configuration context, not null.null.public static void setConfiguration(Configuration config)
Configuration with a new
instance. It is the responsibility of the ConfigurationProvider to trigger
corresponding update events for the current Configuration, so observing
listeners can do whatever is appropriate to react to any given configuration change.config - the new Configuration to be applied, not nullUnsupportedOperationException - if the current provider is read-only and
does not support
applying a new Configuration.public static void setConfiguration(Configuration config, ClassLoader classLoader)
Configuration with a new
instance. It is the responsibility of the ConfigurationProvider to trigger
corresponding update events for the current Configuration, so observing
listeners can do whatever is appropriate to react to any given configuration change.config - the new Configuration to be applied, not nullclassLoader - the target classloader, not null.UnsupportedOperationException - if the current provider is read-only and
does not support
applying a new Configuration.public static ConfigurationBuilder getConfigurationBuilder()
ConfigurationBuilder instance. This method creates
a new builder instance that is not related to any concrete Configuration.
You can use Configuration.setCurrent(Configuration, ClassLoader) to change the
current configuration.ConfigurationBuilder, never null.Configuration.setCurrent(Configuration),
Configuration.setCurrent(Configuration, ClassLoader),
ConfigurationContextCopyright © 2014–2019 Apache Software Foundation. All rights reserved.