KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > aspectwerkz > annotation > Execution


1 package org.codehaus.aspectwerkz.annotation;
2
3 import java.lang.annotation.Target JavaDoc;
4 import java.lang.annotation.ElementType JavaDoc;
5 import java.lang.annotation.Retention JavaDoc;
6 import java.lang.annotation.RetentionPolicy JavaDoc;
7 import java.lang.annotation.Annotation JavaDoc;
8 import java.lang.reflect.Modifier JavaDoc;
9
10 @Target JavaDoc({ElementType.METHOD, ElementType.FIELD})
11         @Retention JavaDoc(RetentionPolicy.RUNTIME)
12         public @interface Execution {
13     int modifiers() default Modifier.PRIVATE | Modifier.PROTECTED; // FIXME
14
Class JavaDoc<? extends Annotation>[] annotations() default Null.class;
15
16     Class JavaDoc returnType() default Null.class;
17
18     String JavaDoc name() default "*";
19
20     Class JavaDoc[] parameterTypes() default Null.class;
21     // anonymous = Annotations only
22
// but could be a string as well - how to do that ?
23
Class JavaDoc<? extends Annotation>[] value() default Null.class;
24 }
25
26 class Null implements Annotation {
27     public Class JavaDoc<? extends Annotation> annotationType() {
28         return null;
29     }
30 }
31
32
Popular Tags