com.opensymphony.xwork.config.impl
Class DefaultConfiguration

java.lang.Object
  extended bycom.opensymphony.xwork.config.impl.DefaultConfiguration
All Implemented Interfaces:
Configuration

public class DefaultConfiguration
extends Object
implements Configuration

DefaultConfiguration

Author:
Jason Carreira Created Feb 24, 2003 7:38:06 AM

Field Summary
protected static org.apache.commons.logging.Log LOG
           
protected  RuntimeConfiguration runtimeConfiguration
           
 
Constructor Summary
DefaultConfiguration()
           
 
Method Summary
 void addPackageConfig(String name, PackageConfig packageContext)
           
protected  RuntimeConfiguration buildRuntimeConfiguration()
          This methodName builds the internal runtime configuration used by Xwork for finding and configuring Actions from the programmatic configuration data structures.
 void destroy()
          Allows the configuration to clean up any resources used
 PackageConfig getPackageConfig(String name)
           
 Set getPackageConfigNames()
           
 Map getPackageConfigs()
           
 RuntimeConfiguration getRuntimeConfiguration()
          The current runtime configuration.
 void rebuildRuntimeConfiguration()
           
 void reload()
          Calls the ConfigurationProviderFactory.getConfig() to tell it to reload the configuration and then calls buildRuntimeConfiguration().
 void removePackageConfig(String name)
           
 
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

runtimeConfiguration

protected RuntimeConfiguration runtimeConfiguration
Constructor Detail

DefaultConfiguration

public DefaultConfiguration()
Method Detail

getPackageConfig

public PackageConfig getPackageConfig(String name)
Specified by:
getPackageConfig in interface Configuration

getPackageConfigNames

public Set getPackageConfigNames()
Specified by:
getPackageConfigNames in interface Configuration

getPackageConfigs

public Map getPackageConfigs()
Specified by:
getPackageConfigs in interface Configuration

getRuntimeConfiguration

public RuntimeConfiguration getRuntimeConfiguration()
Description copied from interface: Configuration
The current runtime configuration. Currently, if changes have been made to the Configuration since the last time buildRuntimeConfiguration() was called, you'll need to make sure to.

Specified by:
getRuntimeConfiguration in interface Configuration
Returns:
the current runtime configuration

addPackageConfig

public void addPackageConfig(String name,
                             PackageConfig packageContext)
Specified by:
addPackageConfig in interface Configuration

destroy

public void destroy()
Allows the configuration to clean up any resources used

Specified by:
destroy in interface Configuration

rebuildRuntimeConfiguration

public void rebuildRuntimeConfiguration()
Specified by:
rebuildRuntimeConfiguration in interface Configuration

reload

public void reload()
            throws ConfigurationException
Calls the ConfigurationProviderFactory.getConfig() to tell it to reload the configuration and then calls buildRuntimeConfiguration().

Specified by:
reload in interface Configuration
Throws:
ConfigurationException

removePackageConfig

public void removePackageConfig(String name)
Specified by:
removePackageConfig in interface Configuration

buildRuntimeConfiguration

protected RuntimeConfiguration buildRuntimeConfiguration()
                                                  throws ConfigurationException
This methodName builds the internal runtime configuration used by Xwork for finding and configuring Actions from the programmatic configuration data structures. All of the old runtime configuration will be discarded and rebuilt.

Throws:
ConfigurationException

XWork Project Page