com.atlassian.jira.config.webwork
Class JiraAliasingActionFactoryProxy
java.lang.Object
webwork.action.factory.ActionFactory
webwork.action.factory.ActionFactoryProxy
com.atlassian.jira.config.webwork.JiraAliasingActionFactoryProxy
public class JiraAliasingActionFactoryProxy
- extends webwork.action.factory.ActionFactoryProxy
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)
Method Summary |
void |
flushCaches()
|
webwork.action.Action |
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 |
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 |
JiraAliasingActionFactoryProxy
public JiraAliasingActionFactoryProxy(webwork.action.factory.ActionFactory aFactory)
getActionImpl
public webwork.action.Action getActionImpl(String aName)
throws Exception
- 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:
getActionImpl
in class webwork.action.factory.ActionFactory
- Parameters:
aName
-
- Returns:
- the action corresponding to the given alias
- Throws:
Exception
flushCaches
public void flushCaches()
- Overrides:
flushCaches
in class webwork.action.factory.ActionFactoryProxy
Copyright © 2002-2013 Atlassian. All Rights Reserved.