Package org.apache.struts.chain.commands
Class AbstractSelectModule
java.lang.Object
org.apache.struts.chain.commands.ActionCommandBase
org.apache.struts.chain.commands.AbstractSelectModule
- All Implemented Interfaces:
Command<ActionContext>,ActionCommand
- Direct Known Subclasses:
SelectModule
Cache the ModuleConfig and MessageResources
instances for the sub-application module to be used for processing this
request.
- Version:
- $Rev$ $Date: 2005-11-12 13:01:44 -0500 (Sat, 12 Nov 2005) $
-
Field Summary
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanexecute_(ActionContext actionCtx) Cache theModuleConfigandMessageResourcesinstances for the sub-application module to be used for processing this request.protected abstract StringgetPrefix(ActionContext context) Calculate and return the module prefix for the module to be selected for this request.Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
-
Constructor Details
-
AbstractSelectModule
public AbstractSelectModule()
-
-
Method Details
-
execute_
Cache the
ModuleConfigandMessageResourcesinstances for the sub-application module to be used for processing this request.- Specified by:
execute_in classActionCommandBase- Parameters:
actionCtx- TheContextfor the current request- Returns:
falseso that processing continues- Throws:
IllegalArgumentException- if no valid ModuleConfig or MessageResources can be identified for this requestException- if thrown by the Action class
-
getPrefix
Calculate and return the module prefix for the module to be selected for this request.
- Parameters:
context- TheContextfor this request- Returns:
- Module prefix to be used with this request
- Throws:
IllegalArgumentException- if no valid ModuleConfig or MessageResources can be identified for this request
-