Package com.skava.oms.util
Class ReflectionUtils
java.lang.Object
com.skava.oms.util.ReflectionUtils
This class defines ReflectionUtils details.
- Since:
- Jul 4, 2018
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> List<T>
Get list of beans fromApplicationContext
using comma separated qualified class namesstatic Method
Get method from Class type with parameter typestatic org.springframework.core.MethodParameter
getMethodParameter
(Class<?> clazz, String methodName, Class<?> parameterType, int parameterIndex) Get Method Parameter of a method from class type
-
Constructor Details
-
ReflectionUtils
public ReflectionUtils()
-
-
Method Details
-
getMethod
Get method from Class type with parameter type- Parameters:
clazz
- type of classmethodName
- name of methodparameterType
- 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 classmethodName
- name of methodparameterType
- type of parameterparameterIndex
- 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 fromApplicationContext
using comma separated qualified class names- Type Parameters:
T
- - To get the generic variable- Parameters:
context
- object ofApplicationContext
beanString
- comma separated qualified class namestype
- type of bean- Returns:
- It returns the list of beans Debug logger has been added to this method.
-