KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > aspectwerkz > annotation > AnnotationInfo


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

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

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

20   private final String JavaDoc m_name;
21
22   /**
23    * The annotation proxy.
24    */

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

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

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

52   public Annotation getAnnotation() {
53     return m_annotation;
54   }
55 }
Popular Tags