public abstract class

ActionFactory

extends Object
java.lang.Object
   ↳ webwork.action.factory.ActionFactory
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Base action factory implementation that initializes the action factory delegation, establishes the ActionContext and provides access to the action factory. Upon instantiation, this class will initialize the action factory specified by the configuration property webwork.action.factory. If this property is not configured or the specified class cannot be instantiated, the DefaultActionFactory class will be instantiated.

Summary

Public Constructors
ActionFactory()
Public Methods
void flushCaches()
Called if the configuration has been modified.
static Action getAction(String aName)
Returns the matching action found as the result of traversing the action factory delegation chain.
static ActionFactory getActionFactory()
Returns the action factory implementation or the default action factory if not available.
abstract Action getActionImpl(String aName)
Returns the action object for the specified action or a matching action on the action factory delegation chain.
static void setActionFactory(ActionFactory aFactory)
Set the action factory implementation.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ActionFactory ()

Public Methods

public void flushCaches ()

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.

public static Action getAction (String aName)

Returns the matching action found as the result of traversing the action factory delegation chain.

Parameters
aName name of action to return
Returns
  • action located through the factory delegation chain
Throws
Exception

public static ActionFactory getActionFactory ()

Returns the action factory implementation or the default action factory if not available.

Returns
  • action factory implementation

public abstract Action getActionImpl (String aName)

Returns the action object for the specified action or a matching action on the action factory delegation chain.

Parameters
aName name of action to check for a match
Throws
Exception

public static void setActionFactory (ActionFactory aFactory)

Set the action factory implementation. Can only be called once.