01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package org.codehaus.aspectwerkz.annotation;
08:
09: import java.io.Serializable;
10:
11: /**
12: * Holds the annotation proxy instance and the name of the annotation.
13: *
14: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
15: */
16: public class AnnotationInfo implements Serializable {
17:
18: /**
19: * The fully qualified name.
20: */
21: private final String m_name;
22:
23: /**
24: * The annotation proxy.
25: */
26: private final Annotation m_annotation;
27:
28: /**
29: * Creates a new annotation info.
30: *
31: * @param name
32: * @param annotation
33: */
34: public AnnotationInfo(final String name, final Annotation annotation) {
35: m_name = name;
36: m_annotation = annotation;
37: }
38:
39: /**
40: * Returns the FQN.
41: *
42: * @return
43: */
44: public String getName() {
45: return m_name;
46: }
47:
48: /**
49: * Returns the annotation proxy.
50: *
51: * @return
52: */
53: public Annotation getAnnotation() {
54: return m_annotation;
55: }
56: }
|