Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.struts.config.impl.ModuleConfigImpl
Field Summary | |
protected List |
|
protected HashMap |
|
protected String |
|
protected String |
|
protected String |
|
protected boolean |
|
protected ControllerConfig |
|
protected HashMap |
|
protected HashMap |
|
protected HashMap |
|
protected HashMap |
|
protected ActionConfigMatcher |
|
protected HashMap |
|
protected ArrayList |
|
protected String |
|
Constructor Summary | |
| |
|
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
ActionConfig |
|
ActionConfig[] |
|
DataSourceConfig |
|
DataSourceConfig[] |
|
ExceptionConfig |
|
ExceptionConfig[] |
|
FormBeanConfig |
|
FormBeanConfig[] |
|
ForwardConfig |
|
ForwardConfig[] |
|
MessageResourcesConfig |
|
MessageResourcesConfig[] |
|
PlugInConfig[] |
|
void |
|
String |
|
String |
|
String |
|
boolean |
|
ControllerConfig |
|
String |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
protected List actionConfigList
The set of action configurations for this module, if any, listed in the order in which they are added.
protected HashMap actionConfigs
The set of action configurations for this module, if any, keyed by thepath
property.
protected String actionFormBeanClass
The default class name to be used when creating action form bean instances.
protected String actionForwardClass
The default class name to be used when creating action forward instances.
protected String actionMappingClass
The default class name to be used when creating action mapping instances.
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 HashMap dataSources
The set of JDBC data source configurations for this module, if any, keyed by thekey
property.
protected HashMap exceptions
The set of exception handling configurations for this module, if any, keyed by thetype
property.
protected HashMap formBeans
The set of form bean configurations for this module, if any, keyed by thename
property.
protected HashMap forwards
The set of global forward configurations for this module, if any, keyed by thename
property.
protected ActionConfigMatcher matcher
Matches action config paths against compiled wildcard patterns
protected HashMap messageResources
The set of message resources configurations for this module, if any, keyed by thekey
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 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.
public ModuleConfigImpl()
Constructor for ModuleConfigImpl. Assumes default configuration.
- Since:
- Struts 1.2.8
public ModuleConfigImpl(String prefix)
Construct an ModuleConfigImpl object according to the specified parameter values.
- Parameters:
prefix
- Context-relative URI prefix for this module
public void addActionConfig(ActionConfig config)
Add a newActionConfig
instance to the set associated with this module.
- Specified by:
- addActionConfig in interface ModuleConfig
- Parameters:
config
- The new configuration instance to be added
public void addDataSourceConfig(DataSourceConfig config)
Add a newDataSourceConfig
instance to the set associated with this module.
- Specified by:
- addDataSourceConfig in interface ModuleConfig
- Parameters:
config
- The new configuration instance to be added
public void addExceptionConfig(ExceptionConfig config)
Add a newExceptionConfig
instance to the set associated with this module.
- Specified by:
- addExceptionConfig in interface ModuleConfig
- Parameters:
config
- The new configuration instance to be added
public void addFormBeanConfig(FormBeanConfig config)
Add a newFormBeanConfig
instance to the set associated with this module.
- Specified by:
- addFormBeanConfig in interface ModuleConfig
- Parameters:
config
- The new configuration instance to be added
public void addForwardConfig(ForwardConfig config)
Add a newForwardConfig
instance to the set of global forwards associated with this module.
- Specified by:
- addForwardConfig in interface ModuleConfig
- Parameters:
config
- The new configuration instance to be added
public void addMessageResourcesConfig(MessageResourcesConfig config)
Add a newMessageResourcesConfig
instance to the set associated with this module.
- Specified by:
- addMessageResourcesConfig in interface ModuleConfig
- Parameters:
config
- The new configuration instance to be added
public void addPlugInConfig(PlugInConfig plugInConfig)
Add a newly configuredPlugInConfig
instance to the set of plug-in Actions for this module.
- Specified by:
- addPlugInConfig in interface ModuleConfig
- Parameters:
plugInConfig
- The new configuration instance to be added
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 returnnull
.
- Specified by:
- findActionConfig in interface ModuleConfig
- Parameters:
path
- Path of the action configuration to return
public ActionConfig[] findActionConfigs()
Return the action configurations for this module. If there are none, a zero-length array is returned.
- Specified by:
- findActionConfigs in interface ModuleConfig
public DataSourceConfig findDataSourceConfig(String key)
Return the data source configuration for the specified key, if any; otherwise returnnull
.
- Specified by:
- findDataSourceConfig in interface ModuleConfig
- Parameters:
key
- Key of the data source configuration to return
public DataSourceConfig[] findDataSourceConfigs()
Return the data source configurations for this module. If there are none, a zero-length array is returned.
- Specified by:
- findDataSourceConfigs in interface ModuleConfig
public ExceptionConfig findExceptionConfig(String type)
Return the exception configuration for the specified type, if any; otherwise returnnull
.
- Specified by:
- findExceptionConfig in interface ModuleConfig
- Parameters:
type
- Exception class name to find a configuration for
public ExceptionConfig[] findExceptionConfigs()
Return the exception configurations for this module. If there are none, a zero-length array is returned.
- Specified by:
- findExceptionConfigs in interface ModuleConfig
public FormBeanConfig findFormBeanConfig(String name)
Return the form bean configuration for the specified key, if any; otherwise returnnull
.
- Specified by:
- findFormBeanConfig in interface ModuleConfig
- Parameters:
name
- Name of the form bean configuration to return
public FormBeanConfig[] findFormBeanConfigs()
Return the form bean configurations for this module. If there are none, a zero-length array is returned.
- Specified by:
- findFormBeanConfigs in interface ModuleConfig
public ForwardConfig findForwardConfig(String name)
Return the forward configuration for the specified key, if any; otherwise returnnull
.
- Specified by:
- findForwardConfig in interface ModuleConfig
- Parameters:
name
- Name of the forward configuration to return
public ForwardConfig[] findForwardConfigs()
Return the form bean configurations for this module. If there are none, a zero-length array is returned.
- Specified by:
- findForwardConfigs in interface ModuleConfig
public MessageResourcesConfig findMessageResourcesConfig(String key)
Return the message resources configuration for the specified key, if any; otherwise returnnull
.
- Specified by:
- findMessageResourcesConfig in interface ModuleConfig
- Parameters:
key
- Key of the data source configuration to return
public MessageResourcesConfig[] findMessageResourcesConfigs()
Return the message resources configurations for this module. If there are none, a zero-length array is returned.
- Specified by:
- findMessageResourcesConfigs in interface ModuleConfig
public PlugInConfig[] findPlugInConfigs()
Return the configured plug-in actions for this module. If there are none, a zero-length array is returned.
- Specified by:
- findPlugInConfigs in interface ModuleConfig
public void freeze()
Freeze the configuration of this module. After this method returns, any attempt to modify the configuration will return an IllegalStateException.
- Specified by:
- freeze in interface ModuleConfig
public String getActionFormBeanClass()
The default class name to be used when creating action form bean instances.
- Specified by:
- getActionFormBeanClass in interface ModuleConfig
public String getActionForwardClass()
The default class name to be used when creating action forward instances.
- Specified by:
- getActionForwardClass in interface ModuleConfig
public String getActionMappingClass()
The default class name to be used when creating action mapping instances.
- Specified by:
- getActionMappingClass in interface ModuleConfig
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.
- Specified by:
- getConfigured in interface ModuleConfig
public ControllerConfig getControllerConfig()
The controller configuration object for this module.
- Specified by:
- getControllerConfig in interface ModuleConfig
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.
- Specified by:
- getPrefix in interface ModuleConfig
public void removeActionConfig(ActionConfig config)
Remove the specified action configuration instance.
- Specified by:
- removeActionConfig in interface ModuleConfig
- Parameters:
config
- ActionConfig instance to be removed
public void removeDataSourceConfig(DataSourceConfig config)
Remove the specified data source configuration instance.
- Specified by:
- removeDataSourceConfig in interface ModuleConfig
- Parameters:
config
- DataSourceConfig instance to be removed
public void removeExceptionConfig(ExceptionConfig config)
Remove the specified exception configuration instance.
- Specified by:
- removeExceptionConfig in interface ModuleConfig
- Parameters:
config
- ActionConfig instance to be removed
public void removeFormBeanConfig(FormBeanConfig config)
Remove the specified form bean configuration instance.
- Specified by:
- removeFormBeanConfig in interface ModuleConfig
- Parameters:
config
- FormBeanConfig instance to be removed
public void removeForwardConfig(ForwardConfig config)
Remove the specified forward configuration instance.
- Specified by:
- removeForwardConfig in interface ModuleConfig
- Parameters:
config
- ForwardConfig instance to be removed
public void removeMessageResourcesConfig(MessageResourcesConfig config)
Remove the specified message resources configuration instance.
- Specified by:
- removeMessageResourcesConfig in interface ModuleConfig
- Parameters:
config
- MessageResourcesConfig instance to be removed
public void setActionFormBeanClass(String actionFormBeanClass)
The default class name to be used when creating action form bean instances.
- Specified by:
- setActionFormBeanClass in interface ModuleConfig
- Parameters:
actionFormBeanClass
- 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.
- Specified by:
- setActionForwardClass in interface ModuleConfig
- Parameters:
actionForwardClass
- 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.
- Specified by:
- setActionMappingClass in interface ModuleConfig
- Parameters:
actionMappingClass
- default class name to be used when creating action mapping instances.
public void setControllerConfig(ControllerConfig cc)
The controller configuration object for this module.
- Specified by:
- setControllerConfig in interface ModuleConfig
- Parameters:
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.
- Specified by:
- setPrefix in interface ModuleConfig