webwork.action.factory
Class PrefixActionFactoryProxy

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

public class PrefixActionFactoryProxy
extends ActionFactoryProxy

Locate an action based on the configured list of package prefixes. The configuration property webwork.action.packages is used to specify a comma separated list of packages that should be considered as prefixes. The default package prefix list is: webwork.action.test and webwork.action.standard.

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

Constructor Summary
PrefixActionFactoryProxy(ActionFactory aFactory)
           
 
Method Summary
 void flushCaches()
          Called if the configuration has been modified.
 Action getActionImpl(java.lang.String aName)
          Returns an action class instance after searching through a list of package prefixes from the configuration properties.
 
Methods inherited from class webwork.action.factory.ActionFactoryProxy
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

PrefixActionFactoryProxy

public PrefixActionFactoryProxy(ActionFactory aFactory)
Method Detail

getActionImpl

public Action getActionImpl(java.lang.String aName)
                     throws java.lang.Exception
Returns an action class instance after searching through a list of package prefixes from the configuration properties. If no action was found, get the action from the action factory proxy chain.

Specified by:
getActionImpl in class ActionFactory
Parameters:
aName -
Returns:
action whose name may be prefixed by this factory
Throws:
java.lang.Exception

flushCaches

public void flushCaches()
Description copied from class: ActionFactory
Called if the configuration has been modified. If an ActionFactory does any caching of results, it should override this method and flush its internal caches in it.

Overrides:
flushCaches in class ActionFactoryProxy


Copyright © 2001-2003 WebWork All Rights Reserved.