Class FastInvoke
java.lang.Object
me.ahoo.wow.infra.accessor.method.FastInvoke
-
Method Summary
Modifier and TypeMethodDescriptionstatic Objectinvoke target object methodstatic <T> TnewInstance(Constructor<T> constructor, Object[] args) create instance
-
Method Details
-
invoke
public static Object invoke(Method method, Object target, Object[] args) throws InvocationTargetException, IllegalAccessException invoke target object method- Parameters:
method- methodtarget- targetargs- args- Returns:
- result
- Throws:
InvocationTargetException- InvocationTargetExceptionIllegalAccessException- IllegalAccessException
-
newInstance
public static <T> T newInstance(Constructor<T> constructor, Object[] args) throws InvocationTargetException, InstantiationException, IllegalAccessException create instance- Type Parameters:
T- instance type- Parameters:
constructor- create instanceargs- args- Returns:
- instance
- Throws:
InvocationTargetException- InvocationTargetExceptionInstantiationException- InstantiationExceptionIllegalAccessException- IllegalAccessException
-