|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.struts.config.impl.ModuleConfigImpl
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.
| フィールドの概要 | |
protected java.util.HashMap |
actionConfigs
The set of action configurations for this module, if any, keyed by the path property. |
protected java.lang.String |
actionMappingClass
The default class name to be used when creating action mapping instances. |
protected boolean |
configured
Has this module been completely configured yet. |
protected ControllerConfig |
controllerConfig
The controller configuration object for this module. |
protected java.util.HashMap |
dataSources
The set of JDBC data source configurations for this module, if any, keyed by the key property. |
protected java.util.HashMap |
exceptions
The set of exception handling configurations for this module, if any, keyed by the type property. |
protected java.util.HashMap |
formBeans
The set of form bean configurations for this module, if any, keyed by the name property. |
protected java.util.HashMap |
forwards
The set of global forward configurations for this module, if any, keyed by the name property. |
protected java.util.HashMap |
messageResources
The set of message resources configurations for this module, if any, keyed by the key property. |
protected java.util.ArrayList |
plugIns
The set of configured plug-in Actions for this module, if any, in the order they were declared and configured. |
protected java.lang.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. |
| コンストラクタの概要 | |
ModuleConfigImpl(ModuleConfigImpl moduleConfig)
推奨されていません。 Only used while we are deprecating ApplicationConfig to insure maximum compatability. |
|
ModuleConfigImpl(java.lang.String prefix)
Construct an ModuleConfigImpl object according to the specified parameter values. |
|
| メソッドの概要 | |
void |
addActionConfig(ActionConfig config)
Add a new ActionConfig instance to the set associated
with this module. |
void |
addDataSourceConfig(DataSourceConfig config)
Add a new DataSourceConfig instance to the set associated
with this module. |
void |
addExceptionConfig(ExceptionConfig config)
Add a new ExceptionConfig instance to the set associated
with this module. |
void |
addFormBeanConfig(FormBeanConfig config)
Add a new FormBeanConfig instance to the set associated
with this module. |
void |
addForwardConfig(ForwardConfig config)
Add a new ForwardConfig instance to the set of global
forwards associated with this module. |
void |
addMessageResourcesConfig(MessageResourcesConfig config)
Add a new MessageResourcesConfig instance to the set
associated with this module. |
void |
addPlugInConfig(PlugInConfig plugInConfig)
Add a newly configured PlugInConfig instance to the set of
plug-in Actions for this module. |
ActionConfig |
findActionConfig(java.lang.String path)
Return the action configuration for the specified path, if any; otherwise return null. |
ActionConfig[] |
findActionConfigs()
Return the action configurations for this module. |
DataSourceConfig |
findDataSourceConfig(java.lang.String key)
Return the data source configuration for the specified key, if any; otherwise return null. |
DataSourceConfig[] |
findDataSourceConfigs()
Return the data source configurations for this module. |
ExceptionConfig |
findExceptionConfig(java.lang.String type)
Return the exception configuration for the specified type, if any; otherwise return null. |
ExceptionConfig[] |
findExceptionConfigs()
Return the exception configurations for this module. |
FormBeanConfig |
findFormBeanConfig(java.lang.String name)
Return the form bean configuration for the specified key, if any; otherwise return null. |
FormBeanConfig[] |
findFormBeanConfigs()
Return the form bean configurations for this module. |
ForwardConfig |
findForwardConfig(java.lang.String name)
Return the forward configuration for the specified key, if any; otherwise return null. |
ForwardConfig[] |
findForwardConfigs()
Return the form bean configurations for this module. |
MessageResourcesConfig |
findMessageResourcesConfig(java.lang.String key)
Return the message resources configuration for the specified key, if any; otherwise return null. |
MessageResourcesConfig[] |
findMessageResourcesConfigs()
Return the message resources configurations for this module. |
PlugInConfig[] |
findPlugInConfigs()
Return the configured plug-in actions for this module. |
void |
freeze()
Freeze the configuration of this module. |
java.lang.String |
getActionMappingClass()
The default class name to be used when creating action mapping instances. |
boolean |
getConfigured()
Has this module been completely configured yet. |
ControllerConfig |
getControllerConfig()
The controller configuration object for this module. |
java.lang.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. |
void |
removeActionConfig(ActionConfig config)
Remove the specified action configuration instance. |
void |
removeDataSourceConfig(DataSourceConfig config)
Remove the specified data source configuration instance. |
void |
removeExceptionConfig(ExceptionConfig config)
Remove the specified exception configuration instance. |
void |
removeFormBeanConfig(FormBeanConfig config)
Remove the specified form bean configuration instance. |
void |
removeForwardConfig(ForwardConfig config)
Remove the specified forward configuration instance. |
void |
removeMessageResourcesConfig(MessageResourcesConfig config)
Remove the specified message resources configuration instance. |
void |
setActionMappingClass(java.lang.String actionMappingClass)
The default class name to be used when creating action mapping instances. |
void |
setControllerConfig(ControllerConfig cc)
The controller configuration object for this module. |
void |
setPrefix(java.lang.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. |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
protected java.util.HashMap actionConfigs
path property.
protected java.util.HashMap dataSources
key property.
protected java.util.HashMap exceptions
type property.
protected java.util.HashMap formBeans
name property.
protected java.util.HashMap forwards
name property.
protected java.util.HashMap messageResources
key property.
protected java.util.ArrayList plugIns
protected boolean configured
protected ControllerConfig controllerConfig
protected java.lang.String prefix
protected java.lang.String actionMappingClass
| コンストラクタの詳細 |
public ModuleConfigImpl(java.lang.String prefix)
prefix - Context-relative URI prefix for this modulepublic ModuleConfigImpl(ModuleConfigImpl moduleConfig)
moduleConfig - | メソッドの詳細 |
public boolean getConfigured()
ModuleConfig 内の getConfiguredpublic ControllerConfig getControllerConfig()
ModuleConfig 内の getControllerConfigpublic void setControllerConfig(ControllerConfig cc)
ModuleConfig 内の setControllerConfigcc - The controller configuration object for this module.public java.lang.String getPrefix()
ModuleConfig 内の getPrefixpublic void setPrefix(java.lang.String prefix)
ModuleConfig 内の setPrefixprefix - The prefix of the context-relative portion of the request URI.public java.lang.String getActionMappingClass()
ModuleConfig 内の getActionMappingClasspublic void setActionMappingClass(java.lang.String actionMappingClass)
ModuleConfig 内の setActionMappingClassactionMappingClass - default class name to be used when creating action mapping
instances.public void addActionConfig(ActionConfig config)
ActionConfig instance to the set associated
with this module.
ModuleConfig 内の addActionConfigconfig - The new configuration instance to be added
java.lang.IllegalStateException - if this module configuration
has been frozenpublic void addDataSourceConfig(DataSourceConfig config)
DataSourceConfig instance to the set associated
with this module.
ModuleConfig 内の addDataSourceConfigconfig - The new configuration instance to be added
java.lang.IllegalStateException - if this module configuration
has been frozenpublic void addExceptionConfig(ExceptionConfig config)
ExceptionConfig instance to the set associated
with this module.
ModuleConfig 内の addExceptionConfigconfig - The new configuration instance to be added
java.lang.IllegalStateException - if this module configuration
has been frozenpublic void addFormBeanConfig(FormBeanConfig config)
FormBeanConfig instance to the set associated
with this module.
ModuleConfig 内の addFormBeanConfigconfig - The new configuration instance to be added
java.lang.IllegalStateException - if this module configuration
has been frozenpublic void addForwardConfig(ForwardConfig config)
ForwardConfig instance to the set of global
forwards associated with this module.
ModuleConfig 内の addForwardConfigconfig - The new configuration instance to be added
java.lang.IllegalStateException - if this module configuration
has been frozenpublic void addMessageResourcesConfig(MessageResourcesConfig config)
MessageResourcesConfig instance to the set
associated with this module.
ModuleConfig 内の addMessageResourcesConfigconfig - The new configuration instance to be added
java.lang.IllegalStateException - if this module configuration
has been frozenpublic void addPlugInConfig(PlugInConfig plugInConfig)
PlugInConfig instance to the set of
plug-in Actions for this module.
ModuleConfig 内の addPlugInConfigplugInConfig - The new configuration instance to be addedpublic ActionConfig findActionConfig(java.lang.String path)
null.
ModuleConfig 内の findActionConfigpath - Path of the action configuration to returnpublic ActionConfig[] findActionConfigs()
ModuleConfig 内の findActionConfigspublic DataSourceConfig findDataSourceConfig(java.lang.String key)
null.
ModuleConfig 内の findDataSourceConfigkey - Key of the data source configuration to returnpublic DataSourceConfig[] findDataSourceConfigs()
ModuleConfig 内の findDataSourceConfigspublic ExceptionConfig findExceptionConfig(java.lang.String type)
null.
ModuleConfig 内の findExceptionConfigtype - Exception class name to find a configuration forpublic ExceptionConfig[] findExceptionConfigs()
ModuleConfig 内の findExceptionConfigspublic FormBeanConfig findFormBeanConfig(java.lang.String name)
null.
ModuleConfig 内の findFormBeanConfigname - Name of the form bean configuration to returnpublic FormBeanConfig[] findFormBeanConfigs()
ModuleConfig 内の findFormBeanConfigspublic ForwardConfig findForwardConfig(java.lang.String name)
null.
ModuleConfig 内の findForwardConfigname - Name of the forward configuration to returnpublic ForwardConfig[] findForwardConfigs()
ModuleConfig 内の findForwardConfigspublic MessageResourcesConfig findMessageResourcesConfig(java.lang.String key)
null.
ModuleConfig 内の findMessageResourcesConfigkey - Key of the data source configuration to returnpublic MessageResourcesConfig[] findMessageResourcesConfigs()
ModuleConfig 内の findMessageResourcesConfigspublic PlugInConfig[] findPlugInConfigs()
ModuleConfig 内の findPlugInConfigspublic void freeze()
ModuleConfig 内の freezepublic void removeActionConfig(ActionConfig config)
ModuleConfig 内の removeActionConfigconfig - ActionConfig instance to be removed
java.lang.IllegalStateException - if this module configuration
has been frozenpublic void removeExceptionConfig(ExceptionConfig config)
ModuleConfig 内の removeExceptionConfigconfig - ActionConfig instance to be removed
java.lang.IllegalStateException - if this module configuration
has been frozenpublic void removeDataSourceConfig(DataSourceConfig config)
ModuleConfig 内の removeDataSourceConfigconfig - DataSourceConfig instance to be removed
java.lang.IllegalStateException - if this module configuration
has been frozenpublic void removeFormBeanConfig(FormBeanConfig config)
ModuleConfig 内の removeFormBeanConfigconfig - FormBeanConfig instance to be removed
java.lang.IllegalStateException - if this module configuration
has been frozenpublic void removeForwardConfig(ForwardConfig config)
ModuleConfig 内の removeForwardConfigconfig - ForwardConfig instance to be removed
java.lang.IllegalStateException - if this module configuration
has been frozenpublic void removeMessageResourcesConfig(MessageResourcesConfig config)
ModuleConfig 内の removeMessageResourcesConfigconfig - MessageResourcesConfig instance to be removed
java.lang.IllegalStateException - if this module configuration
has been frozen
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||