net.vidageek.mirror.provider
Interface AnnotatedElementReflectionProvider

All Known Implementing Classes:
PureJavaAnnotatedElementReflectionProvider

public interface AnnotatedElementReflectionProvider

Interface that defines reflection operations related to annotatedElements

Author:
jonasabreu

Method Summary
<T extends Annotation>
T
getAnnotation(Class<T> annotation)
          This method is used to reflect a single annotation from the AnnotatedElement wrapped.
 List<Annotation> getAnnotations()
          This method is used to reflect all annotations from the AnnotatedElement wrapped.
 

Method Detail

getAnnotations

List<Annotation> getAnnotations()
This method is used to reflect all annotations from the AnnotatedElement wrapped.

Returns:
A list containing all annotations if any existed. An empty list if none is found.
Throws:
ReflectionProviderException

getAnnotation

<T extends Annotation> T getAnnotation(Class<T> annotation)
This method is used to reflect a single annotation from the AnnotatedElement wrapped.

Parameters:
annotation - Annotation to be reflected.
Returns:
The annotation if found, null if not.
Throws:
ReflectionProviderException


Copyright © 2011 VidaGeek.net. All Rights Reserved.