Package webwork.action.factory
Class AliasingActionFactoryProxy
java.lang.Object
webwork.action.factory.ActionFactory
webwork.action.factory.ActionFactoryProxy
webwork.action.factory.AliasingActionFactoryProxy
Aliasing action factory proxy. This will convert the given name to a classname of an Action implementation. By using
aliases you can give meaningful and easy-to-remember names to your action classes. Using aliases also allow you to
use the same action class with many result view mappings.
If the configuration flag
"webwork.only.aliasing" is set to "true", then the given name *must* be an
alias. Otherwise a security exception will be thrown. This is to ensure that only actions that you explicitly want
exposed for invocation can be accessed.
However, actions can always access any other action through the ActionFactory regardless of this setting.- Version:
- $Revision: 1.14 $
- Author:
- Rickard Öberg (rickard@middleware-company.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled if the configuration has been modified.getActionImpl(String aName) Searches for the action from the configuration properties substituting the alias with the associated action and then returns the matching action from the action factory proxy chain.Methods inherited from class webwork.action.factory.ActionFactoryProxy
getNextFactoryMethods inherited from class webwork.action.factory.ActionFactory
getAction, getActionFactory, setActionFactory
-
Constructor Details
-
AliasingActionFactoryProxy
-
-
Method Details
-
getActionImpl
Searches for the action from the configuration properties substituting the alias with the associated action and then returns the matching action from the action factory proxy chain. For the alias to match, it must be specified with an".action"suffix.- Specified by:
getActionImplin classActionFactory- Parameters:
aName-- Returns:
- the action corresponding to the given alias
- Throws:
Exception
-
flushCaches
public void flushCaches()Description copied from class:ActionFactoryCalled 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:
flushCachesin classActionFactoryProxy
-