01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.xwork;
06:
07: import java.util.Map;
08:
09: /**
10: * DefaultActionProxyFactory
11: *
12: * @author Jason Carreira
13: * Created Jun 15, 2003 5:19:13 PM
14: */
15: public class DefaultActionProxyFactory extends ActionProxyFactory {
16:
17: public DefaultActionProxyFactory() {
18: super ();
19: }
20:
21: public ActionInvocation createActionInvocation(
22: ActionProxy actionProxy) throws Exception {
23: return new DefaultActionInvocation(actionProxy);
24: }
25:
26: public ActionInvocation createActionInvocation(
27: ActionProxy actionProxy, Map extraContext) throws Exception {
28: return new DefaultActionInvocation(actionProxy, extraContext);
29: }
30:
31: public ActionInvocation createActionInvocation(
32: ActionProxy actionProxy, Map extraContext,
33: boolean pushAction) throws Exception {
34: return new DefaultActionInvocation(actionProxy, extraContext,
35: pushAction);
36: }
37:
38: /**
39: * Use this method to build an DefaultActionProxy instance.
40: */
41: public ActionProxy createActionProxy(String namespace,
42: String actionName, Map extraContext) throws Exception {
43: return new DefaultActionProxy(namespace, actionName,
44: extraContext, true, true);
45: }
46:
47: /**
48: * Use this method to build an DefaultActionProxy instance.
49: */
50: public ActionProxy createActionProxy(String namespace,
51: String actionName, Map extraContext, boolean executeResult,
52: boolean cleanupContext) throws Exception {
53: return new DefaultActionProxy(namespace, actionName,
54: extraContext, executeResult, cleanupContext);
55: }
56: }
|