net.vidageek.mirror.reflect
Class DefaultAllMethodAnnotationsHandler

java.lang.Object
  extended by net.vidageek.mirror.reflect.DefaultAllMethodAnnotationsHandler
All Implemented Interfaces:
AllMethodAnnotationsHandler

public final class DefaultAllMethodAnnotationsHandler
extends Object
implements AllMethodAnnotationsHandler

This class is responsible for reflecting all annotation on a method

Author:
dnfeitosa

Constructor Summary
DefaultAllMethodAnnotationsHandler(ReflectionProvider provider, Class<?> clazz, String methodName)
           
 
Method Summary
 List<Annotation> withArgs(Class<?>... classes)
          Use this method to reflect a list of annotations on the method that matches classes as its argument list.
 List<Annotation> withoutArgs()
          This is a convenience method for AllMethodAnnotationsHandler.withArgs(Class...)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAllMethodAnnotationsHandler

public DefaultAllMethodAnnotationsHandler(ReflectionProvider provider,
                                          Class<?> clazz,
                                          String methodName)
Method Detail

withoutArgs

public List<Annotation> withoutArgs()
Description copied from interface: AllMethodAnnotationsHandler
This is a convenience method for AllMethodAnnotationsHandler.withArgs(Class...)

Specified by:
withoutArgs in interface AllMethodAnnotationsHandler
See Also:
AllMethodAnnotationsHandler.withArgs(Class...)

withArgs

public List<Annotation> withArgs(Class<?>... classes)
Description copied from interface: AllMethodAnnotationsHandler
Use this method to reflect a list of annotations on the method that matches classes as its argument list.

Specified by:
withArgs in interface AllMethodAnnotationsHandler
Parameters:
classes - Argument list of the method
Returns:
The list of annotation or a empty list if none was found.
See Also:
AnnotatedElementReflectionProvider.getAnnotations()


Copyright © 2011 VidaGeek.net. All Rights Reserved.