Package com.evolveum.midpoint.util
Class ReflectionUtil
java.lang.Object
com.evolveum.midpoint.util.ReflectionUtil
- Author:
- semancik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
debugDumpArgList
(List<?> argList) static Method
findGetter
(Object object, String propertyName) static Method
findMethod
(Object object, String methodName, int arity) static Method
findMethod
(Object object, String methodName, List<?> argList) static Method
findVarArgsMethod
(Object object, String methodName) static <T> T
getJavaProperty
(Object object, String propertyName, Class<T> propetyClass) Try to get java property from the object by reflectionstatic boolean
hasJavaProperty
(Object object, String propertyName) static Object
invokeMethod
(Object object, String methodName, List<?> argList)
-
Constructor Details
-
ReflectionUtil
public ReflectionUtil()
-
-
Method Details
-
getJavaProperty
Try to get java property from the object by reflection -
hasJavaProperty
-
findGetter
-
findMethod
-
findMethod
public static Method findMethod(Object object, String methodName, List<?> argList) throws SecurityException - Throws:
SecurityException
-
findVarArgsMethod
-
invokeMethod
public static Object invokeMethod(Object object, String methodName, List<?> argList) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException -
debugDumpArgList
-