Save This Page
Home » xwork-2.1.5 » com.opensymphony » xwork2 » [javadoc | source]
com.opensymphony.xwork2
public class: DefaultActionInvocation [javadoc | source]
java.lang.Object
   com.opensymphony.xwork2.DefaultActionInvocation

All Implemented Interfaces:
    ActionInvocation

The Default ActionInvocation implementation
Field Summary
protected  Object action     
protected  ActionProxy proxy     
protected  List<PreResultListener> preResultListeners     
protected  Map<String, Object> extraContext     
protected  ActionContext invocationContext     
protected  Iterator<InterceptorMapping> interceptors     
protected  ValueStack stack     
protected  Result result     
protected  Result explicitResult     
protected  String resultCode     
protected  boolean executed     
protected  boolean pushAction     
protected  ObjectFactory objectFactory     
protected  ActionEventListener actionEventListener     
protected  ValueStackFactory valueStackFactory     
protected  Container container     
protected  UnknownHandlerManager unknownHandlerManager     
Constructor:
 public DefaultActionInvocation(Map<String, Object> extraContext,
    boolean pushAction) 
Method from com.opensymphony.xwork2.DefaultActionInvocation Summary:
addPreResultListener,   createAction,   createContextMap,   createResult,   getAction,   getInvocationContext,   getProxy,   getResult,   getResultCode,   getStack,   init,   invoke,   invokeAction,   invokeActionOnly,   isExecuted,   setActionEventListener,   setConfiguration,   setContainer,   setObjectFactory,   setResultCode,   setUnknownHandlerManager,   setValueStackFactory
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.xwork2.DefaultActionInvocation Detail:
 public  void addPreResultListener(PreResultListener listener) 
    Register a com.opensymphony.xwork2.interceptor.PreResultListener to be notified after the Action is executed and before the Result is executed. The ActionInvocation implementation must guarantee that listeners will be called in the order in which they are registered. Listener registration and execution does not need to be thread-safe.
 protected  void createAction(Map<String, Object> contextMap) 
 protected Map<String, Object> createContextMap() 
 public Result createResult() throws Exception 
 public Object getAction() 
 public ActionContext getInvocationContext() 
 public ActionProxy getProxy() 
 public Result getResult() throws Exception 
    If the DefaultActionInvocation has been executed before and the Result is an instance of ActionChainResult, this method will walk down the chain of ActionChainResults until it finds a non-chain result, which will be returned. If the DefaultActionInvocation's result has not been executed before, the Result instance will be created and populated with the result params.
 public String getResultCode() 
 public ValueStack getStack() 
 public  void init(ActionProxy proxy) 
 public String invoke() throws Exception 
 protected String invokeAction(Object action,
    ActionConfig actionConfig) throws Exception 
 public String invokeActionOnly() throws Exception 
 public boolean isExecuted() 
 public  void setActionEventListener(ActionEventListener listener) 
 public  void setConfiguration(Configuration configuration) 
 public  void setContainer(Container cont) 
 public  void setObjectFactory(ObjectFactory fac) 
 public  void setResultCode(String resultCode) 
 public  void setUnknownHandlerManager(UnknownHandlerManager unknownHandlerManager) 
 public  void setValueStackFactory(ValueStackFactory fac)