Home » xwork-2.1.5 » com.opensymphony » xwork2 » interceptor » [javadoc | source]

    1   /*
    2    * Copyright (c) 2002-2007 by OpenSymphony
    3    * All rights reserved.
    4    */
    5   package com.opensymphony.xwork2.interceptor;
    6   
    7   import com.opensymphony.xwork2.ActionInvocation;
    8   
    9   
   10   /**
   11    * PreResultListeners may be registered with an {@link ActionInvocation} to get a callback after the
   12    * {@link com.opensymphony.xwork2.Action} has been executed but before the {@link com.opensymphony.xwork2.Result}
   13    * is executed.
   14    *
   15    * @author Jason Carreira
   16    */
   17   public interface PreResultListener {
   18   
   19       /**
   20        * This callback method will be called after the {@link com.opensymphony.xwork2.Action} execution and
   21        * before the {@link com.opensymphony.xwork2.Result} execution.
   22        *
   23        * @param invocation  the action invocation
   24        * @param resultCode  the result code returned by the action (eg. <code>success</code>).
   25        */
   26       void beforeResult(ActionInvocation invocation, String resultCode);
   27   
   28   }

Home » xwork-2.1.5 » com.opensymphony » xwork2 » interceptor » [javadoc | source]