Class ReflectionUtils


  • public class ReflectionUtils
    extends java.lang.Object
    Provides reflection based utilities for Spring Batch that are not available via Spring Core
    Since:
    2.2.6
    Author:
    Michael Minella
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static java.util.Set<java.lang.reflect.Method>findMethod​(java.lang.Class clazz, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
      Returns a Set of Method instances that are annotated with the annotation provided.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • findMethod

        public static final java.util.Set<java.lang.reflect.Method> findMethod​(java.lang.Class clazz,
                                                                               java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
        Returns a Set of Method instances that are annotated with the annotation provided.
        Parameters:
        clazz - The class to search for a method with the given annotation type
        annotationType - The type of annotation to look for
        Returns:
        a set of Method instances if any are found, an empty set if not.