Class ReflectionUtils

java.lang.Object
com.skava.oms.util.ReflectionUtils

public class ReflectionUtils extends Object
This class defines ReflectionUtils details.
Since:
Jul 4, 2018
Author:
Infosys Equinox
  • Constructor Details

    • ReflectionUtils

      public ReflectionUtils()
  • Method Details

    • getMethod

      public static Method getMethod(Class<?> clazz, String methodName, Class<?> parameterType)
      Get method from Class type with parameter type
      Parameters:
      clazz - type of class
      methodName - name of method
      parameterType - type of parameter
      Returns:
      Method Debug logger has been added to this method.
    • getMethodParameter

      public static org.springframework.core.MethodParameter getMethodParameter(Class<?> clazz, String methodName, Class<?> parameterType, int parameterIndex)
      Get Method Parameter of a method from class type
      Parameters:
      clazz - type of class
      methodName - name of method
      parameterType - type of parameter
      parameterIndex - index of parameter
      Returns:
      MethodParameter
    • getBeans

      public static <T> List<T> getBeans(org.springframework.context.ApplicationContext context, String beanString, Class<T> type)
      Get list of beans from ApplicationContext using comma separated qualified class names
      Type Parameters:
      T - - To get the generic variable
      Parameters:
      context - object of ApplicationContext
      beanString - comma separated qualified class names
      type - type of bean
      Returns:
      It returns the list of beans Debug logger has been added to this method.