com.opensymphony.xwork2
Class DefaultActionProxyFactory
java.lang.Object
com.opensymphony.xwork2.DefaultActionProxyFactory
- All Implemented Interfaces:
- ActionProxyFactory
public class DefaultActionProxyFactory
- extends Object
- implements ActionProxyFactory
Default factory for ActionProxyFactory.
- Author:
- Jason Carreira
|
Method Summary |
ActionProxy |
createActionProxy(ActionInvocation inv,
String namespace,
String actionName,
Map extraContext,
boolean executeResult,
boolean cleanupContext)
|
ActionProxy |
createActionProxy(String namespace,
String actionName,
Map extraContext)
Creates an ActionProxy for the given namespace and action name by looking up the configuration.The ActionProxy
should be fully initialized when it is returned, including having an ActionInvocation instance associated. |
ActionProxy |
createActionProxy(String namespace,
String actionName,
Map extraContext,
boolean executeResult,
boolean cleanupContext)
Creates an ActionProxy for the given namespace and action name by looking up the configuration.The ActionProxy
should be fully initialized when it is returned, including having an ActionInvocation instance associated. |
void |
setContainer(Container container)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
container
protected Container container
DefaultActionProxyFactory
public DefaultActionProxyFactory()
setContainer
public void setContainer(Container container)
createActionProxy
public ActionProxy createActionProxy(String namespace,
String actionName,
Map extraContext)
throws Exception
- Description copied from interface:
ActionProxyFactory
- Creates an
ActionProxy for the given namespace and action name by looking up the configuration.The ActionProxy
should be fully initialized when it is returned, including having an ActionInvocation instance associated.
Note: This is the most used create method.
- Specified by:
createActionProxy in interface ActionProxyFactory
- Parameters:
namespace - the namespace of the action, can be nullactionName - the name of the actionextraContext - a Map of extra parameters to be provided to the ActionProxy, can be null
- Returns:
- ActionProxy the created action proxy
- Throws:
Exception - can be thrown
createActionProxy
public ActionProxy createActionProxy(String namespace,
String actionName,
Map extraContext,
boolean executeResult,
boolean cleanupContext)
throws Exception
- Description copied from interface:
ActionProxyFactory
- Creates an
ActionProxy for the given namespace and action name by looking up the configuration.The ActionProxy
should be fully initialized when it is returned, including having an ActionInvocation instance associated.
- Specified by:
createActionProxy in interface ActionProxyFactory
- Parameters:
namespace - the namespace of the action, can be nullactionName - the name of the actionextraContext - a Map of extra parameters to be provided to the ActionProxy, can be nullexecuteResult - flag which tells whether the result should be executed after the actioncleanupContext - flag which tells whether the original context should be preserved during execution of the proxy.
- Returns:
- ActionProxy the created action proxy
- Throws:
Exception - can be thrown
createActionProxy
public ActionProxy createActionProxy(ActionInvocation inv,
String namespace,
String actionName,
Map extraContext,
boolean executeResult,
boolean cleanupContext)
throws Exception
- Specified by:
createActionProxy in interface ActionProxyFactory
- Throws:
Exception
Copyright © 2007 OpenSymphony. All Rights Reserved.