public class ReflectionLoader extends Object
| Constructor and Description |
|---|
ReflectionLoader() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getField(Object object,
String field) |
static Object |
invokeMethod(Object object,
String method,
Class<?>[] params,
Object... args) |
static <T> T |
loadClass(Class<T> expectedSubtype,
String className,
Class<?>[] constructorArguments,
Object[] args) |
static <T> T |
loadClass(Class<T> expectedSubtype,
String className,
Object[] args) |
public static <T> T loadClass(Class<T> expectedSubtype, String className, Object[] args) throws ReflectionException
ReflectionExceptionpublic static <T> T loadClass(Class<T> expectedSubtype, String className, Class<?>[] constructorArguments, Object[] args) throws ReflectionException
ReflectionExceptionpublic static Object invokeMethod(Object object, String method, Class<?>[] params, Object... args) throws ReflectionException
ReflectionExceptionpublic static Object getField(Object object, String field) throws ReflectionException
ReflectionExceptionCopyright © 2015. All rights reserved.