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

public abstract class AbstractCreateAction extends ActionCommandBase

Create (if necessary) and cache an Action for this request.

Version:
$Rev$ $Date: 2005-11-12 13:01:44 -0500 (Sat, 12 Nov 2005) $
  • Constructor Details

    • AbstractCreateAction

      public AbstractCreateAction()
  • Method Details

    • execute_

      protected boolean execute_(ActionContext actionCtx) throws Exception

      Create (if necessary) and cache an Action for this request.

      Specified by:
      execute_ in class ActionCommandBase
      Parameters:
      actionCtx - The Context for the current request
      Returns:
      false so 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 Action class for the given type and actionConfig.

      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 - The Context for this request
      type - Name of class to instantiate
      actionConfig - The ActionConfig for this request
      Returns:
      Instantiated Action class
      Throws:
      Exception - if there are any problems instantiating the Action class.