webwork.action.factory
Class ScriptActionFactoryProxy

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

public class ScriptActionFactoryProxy
extends ActionFactoryProxy

Obtains the Script action if the suffix is a supported scripting suffix.

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

Constructor Summary
ScriptActionFactoryProxy(ActionFactory aFactory)
           
 
Method Summary
 Action getActionImpl(java.lang.String aName)
          If the suffix of the action is a scripting extension, get the Script action and then load the script.
 
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

ScriptActionFactoryProxy

public ScriptActionFactoryProxy(ActionFactory aFactory)
Method Detail

getActionImpl

public Action getActionImpl(java.lang.String aName)
                     throws java.lang.Exception
If the suffix of the action is a scripting extension, get the Script action and then load the script. Currently, ".js" is the only suffix supported.

Specified by:
getActionImpl in class ActionFactory
Parameters:
aName -
Returns:
the script action or an action corresponding to the given name
Throws:
java.lang.Exception


Copyright © 2001-2003 WebWork All Rights Reserved.