Package com.evolveum.midpoint.util
Class ReflectionUtil
java.lang.Object
com.evolveum.midpoint.util.ReflectionUtil
- Author:
- semancik
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdebugDumpArgList(List<?> argList) static MethodfindGetter(Object object, String propertyName) static MethodfindMethod(Object object, String methodName, int arity) static MethodfindMethod(Object object, String methodName, List<?> argList) static MethodfindVarArgsMethod(Object object, String methodName) static <T> TgetJavaProperty(Object object, String propertyName, Class<T> propetyClass) Try to get java property from the object by reflectionstatic booleanhasJavaProperty(Object object, String propertyName) static ObjectinvokeMethod(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
-