webwork.action.factory
Class CommandActionFactoryProxy

java.lang.Object
  extended bywebwork.action.factory.ActionFactory
      extended bywebwork.action.factory.ActionFactoryProxy
          extended bywebwork.action.factory.CommandActionFactoryProxy

public class CommandActionFactoryProxy
extends ActionFactoryProxy

Executes a "command" within an action specified either as part of the action name or as a parameter value.

Version:
$Revision: 1.11 $
Author:
Rickard Öberg (rickard@middleware-company.com)

Constructor Summary
CommandActionFactoryProxy(ActionFactory aFactory)
           
 
Method Summary
 Action getActionImpl(java.lang.String aName)
          Locates the matching action object from the action factory proxy chain and then executes a command on it if the CommandDriven interface is implemented.
 
Methods inherited from class webwork.action.factory.ActionFactoryProxy
flushCaches, getNextFactory
 
Methods inherited from class webwork.action.factory.ActionFactory
getAction, getActionFactory, setActionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandActionFactoryProxy

public CommandActionFactoryProxy(ActionFactory aFactory)
Method Detail

getActionImpl

public Action getActionImpl(java.lang.String aName)
                     throws java.lang.Exception
Locates the matching action object from the action factory proxy chain and then executes a command on it if the CommandDriven interface is implemented. The command is determined either by using the text after the "!" in the action name or from the value of the first parameter named "command."

Specified by:
getActionImpl in class ActionFactory
Parameters:
aName -
Returns:
action from the next action factory proxy
Throws:
java.lang.Exception


Copyright © 2001-2003 WebWork All Rights Reserved.