KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**************************************************************************************
2  * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
3  * http://aspectwerkz.codehaus.org *
4  * ---------------------------------------------------------------------------------- *
5  * The software in this package is published under the terms of the LGPL license *
6  * a copy of which has been included with this distribution in the license.txt file. *
7  **************************************************************************************/

8 package org.codehaus.aspectwerkz.annotation;
9
10 import java.io.Serializable JavaDoc;
11
12 /**
13  * Holds the annotation proxy instance and the name of the annotation.
14  *
15  * @author <a HREF="mailto:jboner@codehaus.org">Jonas BonŽr </a>
16  */

17 public class AnnotationInfo implements Serializable JavaDoc {
18
19     /**
20      * The fully qualified name.
21      */

22     private final String JavaDoc m_name;
23
24     /**
25      * The annotation proxy.
26      */

27     private final Annotation m_annotation;
28
29     /**
30      * Creates a new annotation info.
31      *
32      * @param name
33      * @param annotation
34      */

35     public AnnotationInfo(final String JavaDoc name, final Annotation annotation) {
36         m_name = name;
37         m_annotation = annotation;
38     }
39
40     /**
41      * Returns the FQN.
42      *
43      * @return
44      */

45     public String JavaDoc getName() {
46         return m_name;
47     }
48
49     /**
50      * Returns the annotation proxy.
51      *
52      * @return
53      */

54     public Annotation getAnnotation() {
55         return m_annotation;
56     }
57 }
Popular Tags