KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > expression > AnnotationTarget


1 /*
2  * $Id: AnnotationTarget.java,v 1.1 2004/12/17 15:52:10 avasseur Exp $
3  * $Date: 2004/12/17 15:52:10 $
4  */

5 package test.expression;
6
7
8 /**
9  * Target test class for annotations unit.
10  *
11  * @author <a HREF="mailto:the_mindstorm@evolva.ro">Alex Popescu</a>
12  * @version $Revision: 1.1 $
13  */

14 public class AnnotationTarget {
15     /**
16      * @Service
17      */

18     public static class ClassLevelAnnotation {
19         /**
20          * @DefaultConstructor
21          */

22         public ClassLevelAnnotation() {
23         }
24         
25         /**
26          * @Asynch
27          */

28         public void innerMethodAsynch() {
29         }
30         
31         /**
32          * @Persistable
33          */

34         Object JavaDoc m_innerField;
35     }
36     
37     /**
38      * @Asynch
39      */

40     public void methodOneAsynch() {
41     }
42     
43     /**
44      * @DefaultConstructor
45      */

46     public AnnotationTarget() {
47     }
48     
49     /**
50      * @Persistable
51      */

52     private Object JavaDoc m_annotatedField;
53     
54     
55     public static interface IConstructorAnnotation {
56         String JavaDoc value();
57     }
58     
59     public static interface IServiceAnnotation {
60         String JavaDoc value();
61     }
62     
63     public static interface IPersistableAnnotation {
64         String JavaDoc value();
65     }
66     
67     public static interface IAsynchronousAnnotation {
68         String JavaDoc value();
69     }
70 }
71
Popular Tags