View Javadoc

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;
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 {
18  
19      /***
20       * The fully qualified name.
21       */
22      private final String 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 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 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  }