com.opensymphony.xwork.config
Class ConfigurationManager

java.lang.Object
  extended bycom.opensymphony.xwork.config.ConfigurationManager

public class ConfigurationManager
extends Object

ConfigurationManager

Author:
Jason Carreira Created Mar 1, 2003 1:06:04 AM

Field Summary
protected static Configuration configurationInstance
           
protected static org.apache.commons.logging.Log LOG
           
 
Method Summary
static void addConfigurationProvider(ConfigurationProvider provider)
          adds a configuration provider to the List of ConfigurationProviders.
static void clearConfigurationProviders()
          clears the registered ConfigurationProviders.
static void destroyConfiguration()
           
static Configuration getConfiguration()
          Get the current XWork configuration object.
static List getConfigurationProviders()
          

get the current list of ConfigurationProviders.

static void setConfiguration(Configuration configuration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG

configurationInstance

protected static Configuration configurationInstance
Method Detail

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.

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()

XWork Project Page