JBoss MetaData Repository 2.2.0.SP1

org.jboss.metadata.plugins.loader.reflection
Class AnnotatedElementMetaDataLoader

java.lang.Object
  extended by org.jboss.metadata.plugins.loader.AbstractMetaDataLoader
      extended by org.jboss.metadata.plugins.loader.BasicMetaDataLoader
          extended by org.jboss.metadata.plugins.loader.reflection.AnnotatedElementMetaDataLoader
All Implemented Interfaces:
MetaDataLoader, MetaDataRetrieval

public class AnnotatedElementMetaDataLoader
extends BasicMetaDataLoader

AnnotatedElementMetaDataLoader.

Version:
$Revision: 110957 $
Author:
Adrian Brock, Carlo de Wolf, Ales Justin

Constructor Summary
AnnotatedElementMetaDataLoader(AnnotatedElement annotated)
          Create a new AnnotatedElementMetaDataContext.
 
Method Summary
 MetaDataRetrieval getComponentMetaDataRetrieval(Signature signature)
          Get the component metadata retrieval
 boolean isEmpty()
          Is metadata empty.
<T extends Annotation>
AnnotationItem<T>
retrieveAnnotation(Class<T> annotationType)
          Get annotation
 AnnotationsItem retrieveAnnotations()
          Get all the annotations
 String toString()
           
 
Methods inherited from class org.jboss.metadata.plugins.loader.BasicMetaDataLoader
retrieveMetaData
 
Methods inherited from class org.jboss.metadata.plugins.loader.AbstractMetaDataLoader
getScope, getScopedRetrieval, getValidTime, invalidate, isCachable, retrieveAnnotationsAnnotatedWith, retrieveLocalAnnotations, retrieveLocalMetaData, retrieveMetaData, retrieveMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotatedElementMetaDataLoader

public AnnotatedElementMetaDataLoader(AnnotatedElement annotated)
Create a new AnnotatedElementMetaDataContext.

Parameters:
annotated - the annotated element
Method Detail

retrieveAnnotations

public AnnotationsItem retrieveAnnotations()
Description copied from interface: MetaDataRetrieval
Get all the annotations

Returns:
the annotations

retrieveAnnotation

public <T extends Annotation> AnnotationItem<T> retrieveAnnotation(Class<T> annotationType)
Description copied from interface: MetaDataRetrieval
Get annotation

Specified by:
retrieveAnnotation in interface MetaDataRetrieval
Overrides:
retrieveAnnotation in class BasicMetaDataLoader
Type Parameters:
T - the annotation type
Parameters:
annotationType - the annotation type
Returns:
the annotation or null if not present

getComponentMetaDataRetrieval

public MetaDataRetrieval getComponentMetaDataRetrieval(Signature signature)
Description copied from interface: MetaDataRetrieval
Get the component metadata retrieval

Specified by:
getComponentMetaDataRetrieval in interface MetaDataRetrieval
Overrides:
getComponentMetaDataRetrieval in class BasicMetaDataLoader
Parameters:
signature - the signature
Returns:
the component metadata retrieval

isEmpty

public boolean isEmpty()
Description copied from interface: MetaDataRetrieval
Is metadata empty.

Returns:
true if metadata empty

toString

public String toString()
Overrides:
toString in class Object

JBoss MetaData Repository 2.2.0.SP1

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