KickJava   Java API By Example, From Geeks To Geeks.

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


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  * Adrian Colyer Initial implementation
11  * ******************************************************************/

12 package org.aspectj.lang.annotation;
13
14 import java.lang.annotation.ElementType JavaDoc;
15 import java.lang.annotation.Retention JavaDoc;
16 import java.lang.annotation.RetentionPolicy JavaDoc;
17 import java.lang.annotation.Target JavaDoc;
18
19 /**
20  * @author colyer
21  * Annotation for declare error...
22  *
23  * usage: @DeclareError("somePcut()")
24  * private static final String "a message";
25  */

26 @Retention JavaDoc(RetentionPolicy.RUNTIME)
27 @Target JavaDoc(ElementType.FIELD)
28 public @interface DeclareError {
29     /**
30      * The pointcut expression where to bind the error (don't use if, formal bindings, cflow etc)
31      */

32     String JavaDoc value();
33 }
34
Popular Tags