com.evolveum.midpoint.util
Class ReflectionUtil

java.lang.Object
  extended by com.evolveum.midpoint.util.ReflectionUtil

public class ReflectionUtil
extends Object

Author:
semancik

Constructor Summary
ReflectionUtil()
           
 
Method Summary
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 reflection
static boolean hasJavaProperty(Object object, String propertyName)
           
static Object invokeMethod(Object object, String methodName, List<?> argList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionUtil

public ReflectionUtil()
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


hasJavaProperty

public static boolean hasJavaProperty(Object object,
                                      String propertyName)

findGetter

public static Method findGetter(Object object,
                                String propertyName)

findMethod

public static Method findMethod(Object object,
                                String methodName,
                                int arity)

findMethod

public static Method findMethod(Object object,
                                String methodName,
                                List<?> argList)
                         throws SecurityException
Throws:
SecurityException

findVarArgsMethod

public static Method findVarArgsMethod(Object object,
                                       String methodName)

invokeMethod

public static Object invokeMethod(Object object,
                                  String methodName,
                                  List<?> argList)
                           throws NoSuchMethodException,
                                  IllegalAccessException,
                                  InvocationTargetException
Throws:
NoSuchMethodException
IllegalAccessException
InvocationTargetException

debugDumpArgList

public static String debugDumpArgList(List<?> argList)


Copyright © 2013 evolveum. All Rights Reserved.