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
ReflectionException
public static <T> T loadClass(Class<T> expectedSubtype, String className, Class<?>[] constructorArguments, Object[] args) throws ReflectionException
ReflectionException
public static Object invokeMethod(Object object, String method, Class<?>[] params, Object... args) throws ReflectionException
ReflectionException
public static Object getField(Object object, String field) throws ReflectionException
ReflectionException
Copyright © 2015. All rights reserved.