KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > aspectj > lang > annotation > AfterReturning


1 /*******************************************************************************
2  * Copyright (c) 2005 Contributors.
3  * All rights reserved.
4  * This program and the accompanying materials are made available
5  * under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution and is available at
7  * http://eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * initial implementation Alexandre Vasseur
11  *******************************************************************************/

12 package org.aspectj.lang.annotation;
13
14 import java.lang.annotation.Target JavaDoc;
15 import java.lang.annotation.ElementType JavaDoc;
16 import java.lang.annotation.Retention JavaDoc;
17 import java.lang.annotation.RetentionPolicy JavaDoc;
18
19 /**
20  * After returning advice
21  *
22  * @author <a HREF="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
23  */

24 @Retention JavaDoc(RetentionPolicy.RUNTIME)
25 @Target JavaDoc(ElementType.METHOD)
26 public @interface AfterReturning {
27
28     /**
29      * The pointcut expression where to bind the advice
30      */

31     String JavaDoc value() default "";
32
33     /**
34      * The pointcut expression where to bind the advice, overrides "value" when specified
35      */

36     String JavaDoc pointcut() default "";
37
38     /**
39      * The name of the argument in the advice signature to bind the returned value to
40      */

41     String JavaDoc returning() default "";
42     
43     /**
44      * When compiling without debug info, or when interpreting pointcuts at runtime,
45      * the names of any arguments used in the advice declaration are not available.
46      * Under these circumstances only, it is necessary to provide the arg names in
47      * the annotation - these MUST duplicate the names used in the annotated method.
48      * Format is a simple comma-separated list.
49      */

50     String JavaDoc argNames() default "";
51
52 }
53
Popular Tags