org.jboss.metadata.annotation.finder
Class DefaultAnnotationFinder<E extends AnnotatedElement>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAnnotationFinder
public DefaultAnnotationFinder()
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 © 2012 JBoss by Red Hat. All Rights Reserved.