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 AfterAdvice} is invoked after the invocation of a specific join point, this
    22   * advice has been woven-into.
    23   * 
    24   * <p>This advice is always invoked, whether a specific join point returned
    25   * successfully with a return value or threw an exception. If you want an advice that
    26   * is only invoked after a successful return or after the throwing of an exception use
    27   * the {@link AfterReturningAdvice} or {@link AfterThrowingAdvice} respectively.
    28   * 
    29   * @author Simon Wacker
    30   * @see <a href="http://www.simonwacker.com/blog/archives/000066.php">Advice</a>
    31   */
    32  interface org.as2lib.aop.advice.AfterAdvice extends Advice {
    33  	
    34  	/**
    35  	 * Executes the actions that were woven-in the given {@code joinPoint}.
    36  	 * 
    37  	 * <p>If you use the proxy returned by the {@link AbstractAfterAdvice#getProxy}
    38  	 * method to overwrite the original join point, this method is invoked after the
    39  	 * given {@code joinPoint} has been proceeded.
    40  	 *
    41  	 * @param joinPoint the join point this advice has been woven-into
    42  	 */
    43  	public function execute(joinPoint:JoinPoint):Void;
    44  	
    45  }