1  /*
     2   * Copyright the original author or authors.
     3   * 
     4   * Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License");
     5   * you may not use this file except in compliance with the License.
     6   * You may obtain a copy of the License at
     7   * 
     8   *      http://www.mozilla.org/MPL/MPL-1.1.html
     9   * 
    10   * Unless required by applicable law or agreed to in writing, software
    11   * distributed under the License is distributed on an "AS IS" BASIS,
    12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13   * See the License for the specific language governing permissions and
    14   * limitations under the License.
    15   */
    16  
    17  import org.as2lib.aop.JoinPoint;
    18  import org.as2lib.aop.Advice;
    19  
    20  /**
    21   * {@code AfterReturningAdvice} is invoked after a join point, this advice has been
    22   * woven-into, has been invoked and returned successfully with a return value, not if
    23   * it threw an exception.
    24   * 
    25   * @author Simon Wacker
    26   * @see AfterAdvice
    27   * @see AfterThrowingAdvice
    28   * @see <a href="http://www.simonwacker.com/blog/archives/000066.php">Advice</a>
    29   */
    30  interface org.as2lib.aop.advice.AfterReturningAdvice extends Advice {
    31  	
    32  	/** 
    33  	 * Executes the actions that were woven-in the given {@code joinPoint}.
    34  	 * 
    35  	 * <p>If you use the proxy returned by the {@link AbstractAfterReturningAdvice#getProxy}
    36  	 * method to overwrite the actual join point, this method is invoked after the join
    37  	 * point was invoked and returned successfully with a return value.
    38  	 *
    39  	 * @param joinPoint the join point this advice was woven into
    40  	 * @param returnValue the result of the execution of the join point
    41  	 */
    42  	public function execute(joinPoint:JoinPoint, returnValue):Void;
    43  	
    44  }