List of usage examples for org.apache.commons.lang3 ClassUtils toClass
public static Class<?>[] toClass(final Object... array)
Converts an array of Object in to an array of Class objects.
From source file:me.j360.dubbo.modules.util.reflect.ReflectionUtil.java
/** * , private/protected./*w ww .jav a 2 s . c o m*/ * * ??? */ public static <T> T invokeMethod(Object obj, String methodName, Object... args) { Object[] theArgs = ArrayUtils.nullToEmpty(args); final Class<?>[] parameterTypes = ClassUtils.toClass(theArgs); return (T) invokeMethod(obj, methodName, theArgs, parameterTypes); }