01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.aspectwerkz.annotation;
05:
06: import com.tc.backport175.Annotation;
07:
08: import java.io.Serializable;
09:
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 {
16:
17: /**
18: * The fully qualified name.
19: */
20: private final String 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 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 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: }
|