Class 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 Details

    • PrefixActionFactoryProxy

      public PrefixActionFactoryProxy(ActionFactory aFactory)
  • Method Details

    • getActionImpl

      public Action getActionImpl(String aName) throws 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:
      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