net.vidageek.mirror.reflect
Class DefaultAllAnnotationsHandler

java.lang.Object
  extended by net.vidageek.mirror.reflect.DefaultAllAnnotationsHandler
All Implemented Interfaces:
AllAnnotationsHandler

public final class DefaultAllAnnotationsHandler
extends Object
implements AllAnnotationsHandler

This class is responsible for choosing where to reflect annotations.

Author:
dnfeitosa

Constructor Summary
DefaultAllAnnotationsHandler(ReflectionProvider provider, Class<?> clazz)
           
 
Method Summary
 List<Annotation> atClass()
          Use this method to reflect all annotations at clazz.
 List<Annotation> atField(String fieldName)
          Use this method to reflect all annotations at field fieldName.
 AllMethodAnnotationsHandler atMethod(String methodName)
          Use this method to reflect all annotations at method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAllAnnotationsHandler

public DefaultAllAnnotationsHandler(ReflectionProvider provider,
                                    Class<?> clazz)
Method Detail

atClass

public List<Annotation> atClass()
Description copied from interface: AllAnnotationsHandler
Use this method to reflect all annotations at clazz.

Specified by:
atClass in interface AllAnnotationsHandler
Returns:
A list containing all annotations found at clazz.
See Also:
AnnotatedElementReflectionProvider.getAnnotations()

atField

public List<Annotation> atField(String fieldName)
Description copied from interface: AllAnnotationsHandler
Use this method to reflect all annotations at field fieldName.

Specified by:
atField in interface AllAnnotationsHandler
Parameters:
fieldName - Name of the field from where to search for annotations.
Returns:
A list containing all annotations found at field.
See Also:
AnnotatedElementReflectionProvider.getAnnotations()

atMethod

public AllMethodAnnotationsHandler atMethod(String methodName)
Description copied from interface: AllAnnotationsHandler
Use this method to reflect all annotations at method.

Specified by:
atMethod in interface AllAnnotationsHandler
Parameters:
methodName - Name of the method from where to search for annotations.
Returns:
An object responsible for reflecting annotations at method.


Copyright © 2011 VidaGeek.net. All Rights Reserved.