Class ReflectionUtils

java.lang.Object
org.springframework.batch.support.ReflectionUtils

public abstract class ReflectionUtils extends Object
Provides reflection based utilities for Spring Batch that are not available in Spring Framework.
Since:
2.2.6
Author:
Michael Minella, Mahmoud Ben Hassine, Taeik Lim
  • Method Details

    • findMethod

      public static Set<Method> findMethod(Class<?> clazz, Class<? extends 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.