KickJava   Java API By Example, From Geeks To Geeks.

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


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

11 package org.aspectj.lang.annotation;
12
13 import java.lang.annotation.Retention JavaDoc;
14 import java.lang.annotation.RetentionPolicy JavaDoc;
15 import java.lang.annotation.Target JavaDoc;
16 import java.lang.annotation.ElementType JavaDoc;
17
18 /**
19  * Used to annotated code-style advice to name it
20  * Name is used by reflection api if present, may in future be used in adviceexecution() pcd.
21  * It is an error to use the @AdviceName annotation on an annotation-style advice declaration.
22  */

23 @Retention JavaDoc(RetentionPolicy.RUNTIME)
24 @Target JavaDoc(ElementType.METHOD)
25 public @interface AdviceName {
26
27     /**
28      * The name of the advice
29      */

30     String JavaDoc value();
31 }
32
Popular Tags