Package org.apache.struts2.factory
Class StrutsActionProxyFactory
java.lang.Object
org.apache.struts2.DefaultActionProxyFactory
org.apache.struts2.factory.StrutsActionProxyFactory
- All Implemented Interfaces:
ActionProxyFactory
- Direct Known Subclasses:
PrefixBasedActionProxyFactory
-
Field Summary
Fields inherited from class org.apache.struts2.DefaultActionProxyFactory
container
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateActionProxy
(ActionInvocation inv, String namespace, String actionName, String methodName, boolean executeResult, boolean cleanupContext) Creates anActionProxy
for the given namespace and action name by looking up the configuration.The ActionProxy should be fully initialized when it is returned, including passedActionInvocation
instance.Methods inherited from class org.apache.struts2.DefaultActionProxyFactory
createActionInvocation, createActionProxy, createActionProxy, createActionProxy, createActionProxy, createActionProxy, setContainer, toString
-
Constructor Details
-
StrutsActionProxyFactory
public StrutsActionProxyFactory()
-
-
Method Details
-
createActionProxy
public ActionProxy createActionProxy(ActionInvocation inv, String namespace, String actionName, String methodName, boolean executeResult, boolean cleanupContext) Description copied from interface:ActionProxyFactory
Creates anActionProxy
for the given namespace and action name by looking up the configuration.The ActionProxy should be fully initialized when it is returned, including passedActionInvocation
instance.- Specified by:
createActionProxy
in interfaceActionProxyFactory
- Overrides:
createActionProxy
in classDefaultActionProxyFactory
- Parameters:
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.- Returns:
- ActionProxy the created action proxy
-