public interface ActionProxyFactory
ActionProxyFactory
is used to create ActionProxy
s to be executed.
It is the entry point to XWork that is used by a dispatcher to create an ActionProxy
to execute
for a particular namespace and action name.
DefaultActionProxyFactory
Modifier and Type | Method and Description |
---|---|
ActionProxy |
createActionProxy(ActionInvocation actionInvocation,
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,
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. |
ActionProxy createActionProxy(String namespace, String actionName, String methodName, Map<String,Object> extraContext)
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.
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 nullActionProxy createActionProxy(String namespace, String actionName, String methodName, Map<String,Object> extraContext, boolean executeResult, boolean cleanupContext)
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.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.ActionProxy createActionProxy(ActionInvocation actionInvocation, String namespace, String actionName, String methodName, boolean executeResult, boolean cleanupContext)
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.actionInvocation
- 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.