Save This Page
Home » xwork-2.1.5 » com.opensymphony » xwork2 » config » impl » [javadoc | source]
com.opensymphony.xwork2.config.impl
public class: DefaultConfiguration [javadoc | source]
java.lang.Object
   com.opensymphony.xwork2.config.impl.DefaultConfiguration

All Implemented Interfaces:
    Configuration

DefaultConfiguration
Nested Class Summary:
class  DefaultConfiguration.ContainerProperties   
Field Summary
protected static final  Logger LOG     
protected  Map<String, PackageConfig> packageContexts     
protected  RuntimeConfiguration runtimeConfiguration     
protected  Container container     
protected  String defaultFrameworkBeanName     
protected  Set<String> loadedFileNames     
protected  List<UnknownHandlerConfig> unknownHandlerStack     
 ObjectFactory objectFactory     
Constructor:
 public DefaultConfiguration() 
 public DefaultConfiguration(String defaultBeanName) 
Method from com.opensymphony.xwork2.config.impl.DefaultConfiguration Summary:
addPackageConfig,   buildRuntimeConfiguration,   createBootstrapContainer,   destroy,   getContainer,   getLoadedFileNames,   getPackageConfig,   getPackageConfigNames,   getPackageConfigs,   getRuntimeConfiguration,   getUnknownHandlerStack,   rebuildRuntimeConfiguration,   reload,   reloadContainer,   removePackageConfig,   setContext,   setUnknownHandlerStack
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.xwork2.config.impl.DefaultConfiguration Detail:
 public  void addPackageConfig(String name,
    PackageConfig packageContext) 
 protected synchronized RuntimeConfiguration buildRuntimeConfiguration() throws ConfigurationException 
    This 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.

    It basically flattens the data structures to make the information easier to access. It will take an ActionConfig and combine its data with all inherited dast. For example, if the ActionConfig is in a package that contains a global result and it also contains a result, the resulting ActionConfig will have two results.

 protected Container createBootstrapContainer() 
 public  void destroy() 
    Allows the configuration to clean up any resources used
 public Container getContainer() 
 public Set<String> getLoadedFileNames() 
 public PackageConfig getPackageConfig(String name) 
 public Set<String> getPackageConfigNames() 
 public Map<String, PackageConfig> getPackageConfigs() 
 public RuntimeConfiguration getRuntimeConfiguration() 
 public List<UnknownHandlerConfig> getUnknownHandlerStack() 
 public  void rebuildRuntimeConfiguration() 
 public synchronized  void reload(List<ConfigurationProvider> providers) throws ConfigurationException 
    Calls the ConfigurationProviderFactory.getConfig() to tell it to reload the configuration and then calls buildRuntimeConfiguration().
 public synchronized List<PackageProvider> reloadContainer(List<ContainerProvider> providers) throws ConfigurationException 
    Calls the ConfigurationProviderFactory.getConfig() to tell it to reload the configuration and then calls buildRuntimeConfiguration().
 public PackageConfig removePackageConfig(String packageName) 
 protected ActionContext setContext(Container cont) 
 public  void setUnknownHandlerStack(List<UnknownHandlerConfig> unknownHandlerStack)