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 java.lang.annotation.Annotation>
T
getAnnotation(java.lang.Class<T> annotation)
          This method is used to reflect a single annotation from the AnnotatedElement wrapped.
 java.util.List<java.lang.annotation.Annotation> getAnnotations()
          This method is used to reflect all annotations from the AnnotatedElement wrapped.
 

Method Detail

getAnnotations

java.util.List<java.lang.annotation.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 java.lang.annotation.Annotation> T getAnnotation(java.lang.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 © 2009 VidaGeek.net. All Rights Reserved.