You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

ActionProxy acts as a representation proxy that is responsible for executing a particular Action. This is such that one could have different means of getting an action. Its customizable through ActionProxyFactory.

ActionInvocation represents a particular action invocation and is customizable through ActionProxyFactory as well. It represents how an action is to be executed (eg. having it intercepted, then execute it, having PreResultListener acting on it before the Result is being executed etc).

Customization

ActionProxyFactory

 ActionProxyFactory.setFactory(new MyActionProxyFactory() {
    .....
 });

ActionProxy

 ActionProxyFactory.getFactory(new MyActionProxyFactory() {
    public ActionProxy createActionProxy(Configuration config, 
           String namespace, String actionName, Map extraContext) 
           throws Exception {
        createActionProxy(config, namespace, actionName, extraContext, true);
    }
    public ActionProxy createActionProxy(Configuration config, 
           String namespace, String actionName, Map extraContext, 
           boolean executeResult, boolean cleanupContext) 
           throws Exception {
        ....
   }
 });

ActionInvocation

 ActionProxyFactory.getFactory(new MyActionProxyFactory() {
    
 });
  • No labels