net.vidageek.mirror.reflect
Class DefaultMemberHandler
java.lang.Object
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
|
Method Summary |
|
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 |
DefaultMemberHandler
public DefaultMemberHandler(ReflectionProvider provider,
AnnotatedElement member)
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.