com.opensymphony.xwork.config
Class ConfigurationManager
java.lang.Object
com.opensymphony.xwork.config.ConfigurationManager
public class ConfigurationManager - extends Object
ConfigurationManager - central for XWork Configuration management, including
its ConfigurationProvider.
- Version:
- $Date: 2006-03-16 14:34:21 +0100 (Thu, 16 Mar 2006) $ $Id: ConfigurationManager.java 901 2006-03-16 14:34:21 +0100 (Thu, 16 Mar 2006) tmjee $
- Author:
- Jason Carreira, tm_jee
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.commons.logging.Log LOG
configurationInstance
protected static Configuration configurationInstance
setConfiguration
public static void setConfiguration(Configuration configuration)
getConfiguration
public static Configuration getConfiguration()
- Get the current XWork configuration object. By default an instance of DefaultConfiguration will be returned
- See Also:
DefaultConfiguration
getConfigurationProviders
public static List getConfigurationProviders()
-
get the current list of ConfigurationProviders.
if no custom ConfigurationProviders have been added, this method
will return a list containing only the default ConfigurationProvider, XMLConfigurationProvider. if a custom
ConfigurationProvider has been added, then the XmlConfigurationProvider must be added by hand.
TODO: the lazy instantiation of XmlConfigurationProvider should be refactored to be elsewhere. the behavior described above seems unintuitive.
- Returns:
- the list of registered ConfigurationProvider objects
- See Also:
ConfigurationProvider
addConfigurationProvider
public static void addConfigurationProvider(ConfigurationProvider provider)
- adds a configuration provider to the List of ConfigurationProviders. a given ConfigurationProvider may be added
more than once
- Parameters:
provider - the ConfigurationProvider to register
clearConfigurationProviders
public static void clearConfigurationProviders()
- clears the registered ConfigurationProviders. this method will call destroy() on each of the registered
ConfigurationProviders
- See Also:
ConfigurationProvider.destroy()
destroyConfiguration
public static void destroyConfiguration()
|