public class DefaultActionProxyFactory extends Object implements ActionProxyFactory
ActionProxyFactory
.Constructor and Description |
---|
DefaultActionProxyFactory() |
Modifier and Type | Method and Description |
---|---|
protected ActionInvocation |
createActionInvocation(Map<String,Object> extraContext,
boolean pushAction) |
ActionProxy |
createActionProxy(ActionInvocation inv,
String namespace,
String actionName,
boolean executeResult,
boolean cleanupContext) |
ActionProxy |
createActionProxy(ActionInvocation inv,
String namespace,
String actionName,
String methodName,
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 passed ActionInvocation instance. |
ActionProxy |
createActionProxy(String namespace,
String actionName,
Map<String,Object> extraContext) |
ActionProxy |
createActionProxy(String namespace,
String actionName,
Map<String,Object> extraContext,
boolean executeResult,
boolean cleanupContext) |
ActionProxy |
createActionProxy(String namespace,
String actionName,
String methodName,
Map<String,Object> 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,
String methodName,
Map<String,Object> 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) |
String |
toString() |
protected Container container
public void setContainer(Container container)
public ActionProxy createActionProxy(String namespace, String actionName, Map<String,Object> extraContext)
public ActionProxy createActionProxy(String namespace, String actionName, String methodName, Map<String,Object> extraContext)
ActionProxyFactory
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.
createActionProxy
in interface ActionProxyFactory
namespace
- the namespace of the action, can be nullactionName
- the name of the actionmethodName
- the name of the method to executeextraContext
- a Map of extra parameters to be provided to the ActionProxy, can be nullpublic ActionProxy createActionProxy(String namespace, String actionName, Map<String,Object> extraContext, boolean executeResult, boolean cleanupContext)
public ActionProxy createActionProxy(String namespace, String actionName, String methodName, Map<String,Object> extraContext, boolean executeResult, boolean cleanupContext)
ActionProxyFactory
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.createActionProxy
in interface ActionProxyFactory
namespace
- the namespace of the action, can be nullactionName
- the name of the actionmethodName
- the name of the method to executeextraContext
- 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.protected ActionInvocation createActionInvocation(Map<String,Object> extraContext, boolean pushAction)
public ActionProxy createActionProxy(ActionInvocation inv, String namespace, String actionName, boolean executeResult, boolean cleanupContext)
public ActionProxy createActionProxy(ActionInvocation inv, String namespace, String actionName, String methodName, boolean executeResult, boolean cleanupContext)
ActionProxyFactory
ActionProxy
for the given namespace and action name by looking up the configuration.The ActionProxy
should be fully initialized when it is returned, including passed ActionInvocation
instance.createActionProxy
in interface ActionProxyFactory
inv
- the action invocation instance to associate withnamespace
- the namespace of the action, can be nullactionName
- the name of the actionmethodName
- the name of the method to executeexecuteResult
- 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.Copyright © 2000–2020 Apache Software Foundation. All rights reserved.