org.jboss.metadata.annotation.finder
Class DefaultAnnotationFinder<E extends AnnotatedElement>

java.lang.Object
  extended by org.jboss.metadata.annotation.finder.DefaultAnnotationFinder<E>
All Implemented Interfaces:
AnnotationFinder<E>

public class DefaultAnnotationFinder<E extends AnnotatedElement>
extends Object
implements AnnotationFinder<E>

The default annotation processor finder will look for annotations directly on the annotated element.

Version:
$Revision: 65638 $
Author:
Carlo de Wolf

Constructor Summary
DefaultAnnotationFinder()
           
 
Method Summary
<T extends Annotation>
T
getAnnotation(E element, Class<T> annotationType)
           
 Annotation[] getAnnotations(E element)
           
 Annotation[] getDeclaredAnnotations(E element)
           
 boolean isAnnotationPresent(E element, Class<? extends Annotation> annotationType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAnnotationFinder

public DefaultAnnotationFinder()
Method Detail

getAnnotation

public <T extends Annotation> T getAnnotation(E element,
                                              Class<T> annotationType)
Specified by:
getAnnotation in interface AnnotationFinder<E extends AnnotatedElement>

getAnnotations

public Annotation[] getAnnotations(E element)
Specified by:
getAnnotations in interface AnnotationFinder<E extends AnnotatedElement>

getDeclaredAnnotations

public Annotation[] getDeclaredAnnotations(E element)
Specified by:
getDeclaredAnnotations in interface AnnotationFinder<E extends AnnotatedElement>

isAnnotationPresent

public boolean isAnnotationPresent(E element,
                                   Class<? extends Annotation> annotationType)
Specified by:
isAnnotationPresent in interface AnnotationFinder<E extends AnnotatedElement>


Copyright © 2009 JBoss Inc.. All Rights Reserved.