Package com.evolveum.midpoint.util
Class ReflectionUtil
- java.lang.Object
-
- com.evolveum.midpoint.util.ReflectionUtil
-
public class ReflectionUtil extends Object
- Author:
- semancik
-
-
Constructor Summary
Constructors Constructor Description ReflectionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
-
-
-
Method Detail
-
getJavaProperty
public static <T> T getJavaProperty(Object object, String propertyName, Class<T> propetyClass)
Try to get java property from the object by reflection
-
findMethod
public static Method findMethod(Object object, String methodName, List<?> argList) throws SecurityException
- Throws:
SecurityException
-
invokeMethod
public static Object invokeMethod(Object object, String methodName, List<?> argList) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
-
-