Home » Struts-1.3.10 » org.apache.struts » config » impl » [javadoc | source]
org.apache.struts.config.impl
public class: ModuleConfigImpl [javadoc | source]
java.lang.Object
   org.apache.struts.config.impl.ModuleConfigImpl

All Implemented Interfaces:
    ModuleConfig, Serializable

The collection of static configuration information that describes a Struts-based module. Multiple modules are identified by a prefix at the beginning of the context relative portion of the request URI. If no module prefix can be matched, the default configuration (with a prefix equal to a zero-length string) is selected, which is elegantly backwards compatible with the previous Struts behavior that only supported one module.

Field Summary
protected  HashMap actionConfigs    The set of action configurations for this module, if any, keyed by the path property. 
protected  List actionConfigList    The set of action configurations for this module, if any, listed in the order in which they are added. 
protected  HashMap dataSources    The set of JDBC data source configurations for this module, if any, keyed by the key property. 
protected  HashMap exceptions    The set of exception handling configurations for this module, if any, keyed by the type property. 
protected  HashMap formBeans    The set of form bean configurations for this module, if any, keyed by the name property. 
protected  HashMap forwards    The set of global forward configurations for this module, if any, keyed by the name property. 
protected  HashMap messageResources    The set of message resources configurations for this module, if any, keyed by the key property. 
protected  ArrayList plugIns    The set of configured plug-in Actions for this module, if any, in the order they were declared and configured. 
protected  boolean configured    Has this module been completely configured yet. Once this flag has been set, any attempt to modify the configuration will return an IllegalStateException. 
protected  ControllerConfig controllerConfig    The controller configuration object for this module. 
protected  String prefix    The prefix of the context-relative portion of the request URI, used to select this configuration versus others supported by the controller servlet. A configuration with a prefix of a zero-length String is the default configuration for this web module. 
protected  String actionFormBeanClass    The default class name to be used when creating action form bean instances. 
protected  String actionMappingClass    The default class name to be used when creating action mapping instances. 
protected  String actionForwardClass    The default class name to be used when creating action forward instances. 
protected  ActionConfigMatcher matcher    Matches action config paths against compiled wildcard patterns 
Constructor:
 public ModuleConfigImpl() 
 public ModuleConfigImpl(String prefix) 
    Construct an ModuleConfigImpl object according to the specified parameter values.
    Parameters:
    prefix - Context-relative URI prefix for this module
Method from org.apache.struts.config.impl.ModuleConfigImpl Summary:
addActionConfig,   addDataSourceConfig,   addExceptionConfig,   addFormBeanConfig,   addForwardConfig,   addMessageResourcesConfig,   addPlugInConfig,   findActionConfig,   findActionConfigs,   findDataSourceConfig,   findDataSourceConfigs,   findExceptionConfig,   findExceptionConfigs,   findFormBeanConfig,   findFormBeanConfigs,   findForwardConfig,   findForwardConfigs,   findMessageResourcesConfig,   findMessageResourcesConfigs,   findPlugInConfigs,   freeze,   getActionFormBeanClass,   getActionForwardClass,   getActionMappingClass,   getConfigured,   getControllerConfig,   getPrefix,   removeActionConfig,   removeDataSourceConfig,   removeExceptionConfig,   removeFormBeanConfig,   removeForwardConfig,   removeMessageResourcesConfig,   setActionFormBeanClass,   setActionForwardClass,   setActionMappingClass,   setControllerConfig,   setPrefix
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts.config.impl.ModuleConfigImpl Detail:
 public  void addActionConfig(ActionConfig config) 
    Add a new ActionConfig instance to the set associated with this module.
 public  void addDataSourceConfig(DataSourceConfig config) 
    Add a new DataSourceConfig instance to the set associated with this module.
 public  void addExceptionConfig(ExceptionConfig config) 
    Add a new ExceptionConfig instance to the set associated with this module.
 public  void addFormBeanConfig(FormBeanConfig config) 
    Add a new FormBeanConfig instance to the set associated with this module.
 public  void addForwardConfig(ForwardConfig config) 
    Add a new ForwardConfig instance to the set of global forwards associated with this module.
 public  void addMessageResourcesConfig(MessageResourcesConfig config) 
    Add a new MessageResourcesConfig instance to the set associated with this module.
 public  void addPlugInConfig(PlugInConfig plugInConfig) 
 public ActionConfig findActionConfig(String path) 
    Return the action configuration for the specified path, first looking a direct match, then if none found, a wildcard pattern match; otherwise return null.
 public ActionConfig[] findActionConfigs() 
    Return the action configurations for this module. If there are none, a zero-length array is returned.
 public DataSourceConfig findDataSourceConfig(String key) 
    Return the data source configuration for the specified key, if any; otherwise return null.
 public DataSourceConfig[] findDataSourceConfigs() 
    Return the data source configurations for this module. If there are none, a zero-length array is returned.
 public ExceptionConfig findExceptionConfig(String type) 
    Return the exception configuration for the specified type, if any; otherwise return null.
 public ExceptionConfig[] findExceptionConfigs() 
    Return the exception configurations for this module. If there are none, a zero-length array is returned.
 public FormBeanConfig findFormBeanConfig(String name) 
    Return the form bean configuration for the specified key, if any; otherwise return null.
 public FormBeanConfig[] findFormBeanConfigs() 
    Return the form bean configurations for this module. If there are none, a zero-length array is returned.
 public ForwardConfig findForwardConfig(String name) 
    Return the forward configuration for the specified key, if any; otherwise return null.
 public ForwardConfig[] findForwardConfigs() 
    Return the form bean configurations for this module. If there are none, a zero-length array is returned.
 public MessageResourcesConfig findMessageResourcesConfig(String key) 
    Return the message resources configuration for the specified key, if any; otherwise return null.
 public MessageResourcesConfig[] findMessageResourcesConfigs() 
    Return the message resources configurations for this module. If there are none, a zero-length array is returned.
 public PlugInConfig[] findPlugInConfigs() 
    Return the configured plug-in actions for this module. If there are none, a zero-length array is returned.
 public  void freeze() 
    Freeze the configuration of this module. After this method returns, any attempt to modify the configuration will return an IllegalStateException.
 public String getActionFormBeanClass() 
    The default class name to be used when creating action form bean instances.
 public String getActionForwardClass() 
    The default class name to be used when creating action forward instances.
 public String getActionMappingClass() 
    The default class name to be used when creating action mapping instances.
 public boolean getConfigured() 
    Has this module been completely configured yet. Once this flag has been set, any attempt to modify the configuration will return an IllegalStateException.
 public ControllerConfig getControllerConfig() 
    The controller configuration object for this module.
 public String getPrefix() 
    The prefix of the context-relative portion of the request URI, used to select this configuration versus others supported by the controller servlet. A configuration with a prefix of a zero-length String is the default configuration for this web module.
 public  void removeActionConfig(ActionConfig config) 
    Remove the specified action configuration instance.
 public  void removeDataSourceConfig(DataSourceConfig config) 
    Remove the specified data source configuration instance.
 public  void removeExceptionConfig(ExceptionConfig config) 
    Remove the specified exception configuration instance.
 public  void removeFormBeanConfig(FormBeanConfig config) 
    Remove the specified form bean configuration instance.
 public  void removeForwardConfig(ForwardConfig config) 
    Remove the specified forward configuration instance.
 public  void removeMessageResourcesConfig(MessageResourcesConfig config) 
    Remove the specified message resources configuration instance.
 public  void setActionFormBeanClass(String actionFormBeanClass) 
    The default class name to be used when creating action form bean instances.
 public  void setActionForwardClass(String actionForwardClass) 
    The default class name to be used when creating action forward instances.
 public  void setActionMappingClass(String actionMappingClass) 
    The default class name to be used when creating action mapping instances.
 public  void setControllerConfig(ControllerConfig cc) 
    The controller configuration object for this module.
 public  void setPrefix(String prefix) 
    The prefix of the context-relative portion of the request URI, used to select this configuration versus others supported by the controller servlet. A configuration with a prefix of a zero-length String is the default configuration for this web module.