org.jboss.metadata.spi.retrieval.basic
Class BasicAnnotationItem<T extends Annotation>

java.lang.Object
  extended by org.jboss.metadata.spi.retrieval.basic.BasicItem<T>
      extended by org.jboss.metadata.spi.retrieval.basic.BasicMetaDataItem<T>
          extended by org.jboss.metadata.spi.retrieval.basic.BasicAnnotationItem<T>
Type Parameters:
T - the annotation type
All Implemented Interfaces:
AnnotationItem<T>, Item<T>, MetaDataItem<T>

public class BasicAnnotationItem<T extends Annotation>
extends BasicMetaDataItem<T>
implements AnnotationItem<T>

BasicAnnotationItem.

Version:
$Revision: 69888 $
Author:
Adrian Brock

Constructor Summary
BasicAnnotationItem(MetaDataLoader loader, T annotation)
          Create a new BasicAnnotationItem.
 
Method Summary
 boolean equals(Object object)
           
 T getAnnotation()
          Get the annotation
 
Methods inherited from class org.jboss.metadata.spi.retrieval.basic.BasicMetaDataItem
getName, getValue, hashCode, toString
 
Methods inherited from class org.jboss.metadata.spi.retrieval.basic.BasicItem
invalidate, isCachable, isValid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.metadata.spi.retrieval.MetaDataItem
getName
 
Methods inherited from interface org.jboss.metadata.spi.retrieval.Item
getValue, isCachable, isValid
 

Constructor Detail

BasicAnnotationItem

public BasicAnnotationItem(MetaDataLoader loader,
                           T annotation)
Create a new BasicAnnotationItem.

Parameters:
loader - the loader
annotation - the annotation
Method Detail

getAnnotation

public T getAnnotation()
Description copied from interface: AnnotationItem
Get the annotation

Specified by:
getAnnotation in interface AnnotationItem<T extends Annotation>
Returns:
the annotation

equals

public boolean equals(Object object)
Overrides:
equals in class BasicMetaDataItem<T extends Annotation>


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.