Package org.apache.struts.chain.commands
Class AbstractCreateAction
java.lang.Object
org.apache.struts.chain.commands.ActionCommandBase
org.apache.struts.chain.commands.AbstractCreateAction
- All Implemented Interfaces:
Command<ActionContext>,ActionCommand
- Direct Known Subclasses:
CreateAction
Create (if necessary) and cache an Action for 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) Create (if necessary) and cache anActionfor this request.protected abstract ActiongetAction(ActionContext context, String type, ActionConfig actionConfig) Create and return the appropriateActionclass for the giventypeandactionConfig.Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
-
Constructor Details
-
AbstractCreateAction
public AbstractCreateAction()
-
-
Method Details
-
execute_
Create (if necessary) and cache an
Actionfor this request.- Specified by:
execute_in classActionCommandBase- Parameters:
actionCtx- TheContextfor the current request- Returns:
falseso that processing continues- Throws:
Exception- if there are any problems instantiating the Action class.
-
getAction
protected abstract Action getAction(ActionContext context, String type, ActionConfig actionConfig) throws Exception Create and return the appropriate
Actionclass for the giventypeandactionConfig.NOTE: The dependence on ActionServlet suggests that this should be broken up along the lines of the other Abstract/concrete pairs in the org.apache.struts.chain.commands package.
- Parameters:
context- TheContextfor this requesttype- Name of class to instantiateactionConfig- TheActionConfigfor this request- Returns:
- Instantiated Action class
- Throws:
Exception- if there are any problems instantiating the Action class.
-