Package org.apache.struts2.config
Class ConfigurationManager
java.lang.Object
org.apache.struts2.config.ConfigurationManager
ConfigurationManager - central for XWork Configuration management, including
its ConfigurationProvider.
- Version:
- $Date$ $Id$
- Author:
- Jason Carreira, tm_jee
-
Field Summary
Modifier and TypeFieldDescriptionprotected Configuration
protected String
protected static final org.apache.logging.log4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addContainerProvider
(ContainerProvider provider) adds a configuration provider to the List of ConfigurationProviders.protected void
void
void
Reloads the Configuration files if the configuration files indicate that they need to be reloaded.protected Configuration
createConfiguration
(String beanName) void
void
Clear all container providers and destroy managing Configuration instanceGet the current list of ConfigurationProviders.protected void
void
reload()
void
removeContainerProvider
(ContainerProvider provider) void
setConfiguration
(Configuration configuration) void
setContainerProviders
(List<ContainerProvider> containerProviders) Set the list of configuration providers
-
Field Details
-
LOG
protected static final org.apache.logging.log4j.Logger LOG -
configuration
-
defaultFrameworkBeanName
-
-
Constructor Details
-
ConfigurationManager
-
-
Method Details
-
getConfiguration
- Returns:
- the current XWork configuration object. By default an instance of DefaultConfiguration will be returned
- See Also:
-
initialiseConfiguration
protected void initialiseConfiguration() -
addDefaultContainerProviders
protected void addDefaultContainerProviders() -
createConfiguration
-
destroyConfiguration
public void destroyConfiguration()Clear all container providers and destroy managing Configuration instance -
setConfiguration
-
getContainerProviders
Get the current list of ConfigurationProviders.- Returns:
- the list of registered ConfigurationProvider objects
- See Also:
-
setContainerProviders
Set the list of configuration providers- Parameters:
containerProviders
- list ofConfigurationProvider
to be set
-
addContainerProvider
adds a configuration provider to the List of ConfigurationProviders. a given ConfigurationProvider may be added more than once- Parameters:
provider
- the ConfigurationProvider to register
-
removeContainerProvider
-
clearContainerProviders
public void clearContainerProviders() -
conditionalReload
public void conditionalReload()Reloads the Configuration files if the configuration files indicate that they need to be reloaded. -
destroyAndReload
public void destroyAndReload() -
reload
public void reload()
-