@InterfaceAudience.Private public class ReflectionUtils extends Object
Constructor and Description |
---|
ReflectionUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addResourcesToClasspath(List<URL> urls) |
static void |
addResourcesToSystemClassLoader(List<URL> urls) |
static <T> T |
createClazzInstance(String className) |
static <T> T |
createClazzInstance(String className,
Class<?>[] parameterTypes,
Object[] parameters) |
static Class<?> |
getClazz(String className) |
static Method |
getMethod(Class<?> targetClazz,
String methodName,
Class<?>... parameterTypes) |
static <T> T |
invokeMethod(Object target,
Method method,
Object... args) |
@InterfaceAudience.Private public static Class<?> getClazz(String className) throws TezReflectionException
TezReflectionException
@InterfaceAudience.Private public static <T> T createClazzInstance(String className) throws TezReflectionException
TezReflectionException
@InterfaceAudience.Private public static <T> T createClazzInstance(String className, Class<?>[] parameterTypes, Object[] parameters) throws TezReflectionException
TezReflectionException
@InterfaceAudience.Private public static <T> T invokeMethod(Object target, Method method, Object... args) throws TezReflectionException
TezReflectionException
@InterfaceAudience.Private public static Method getMethod(Class<?> targetClazz, String methodName, Class<?>... parameterTypes) throws TezReflectionException
TezReflectionException
@InterfaceAudience.Private public static void addResourcesToClasspath(List<URL> urls)
Copyright © 2016 Apache Software Foundation. All rights reserved.