net.vidageek.mirror.reflect
Class DefaultMemberHandler

java.lang.Object
  extended by net.vidageek.mirror.reflect.DefaultMemberHandler
All Implemented Interfaces:
MemberHandler

public final class DefaultMemberHandler
extends Object
implements MemberHandler

This class is responsible for reflecting a single annotation from a AccessibleObject

Author:
dnfeitosa

Constructor Summary
DefaultMemberHandler(ReflectionProvider provider, AnnotatedElement member)
           
 
Method Summary
<T extends Annotation>
T
annotation(Class<T> annotation)
          Use this method to reflect a single annotation from the AccessibleObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMemberHandler

public DefaultMemberHandler(ReflectionProvider provider,
                            AnnotatedElement member)
Method Detail

annotation

public <T extends Annotation> T annotation(Class<T> annotation)
Description copied from interface: MemberHandler
Use this method to reflect a single annotation from the AccessibleObject

Specified by:
annotation in interface MemberHandler
Parameters:
annotation - Annotation type to be reflected.
Returns:
The annotation or null if it was not found.
See Also:
AnnotatedElementReflectionProvider.getAnnotation(Class)


Copyright © 2011 VidaGeek.net. All Rights Reserved.