public final class ReflectionUtil extends Object
ImmutableDataCachingUtil
to create
ImmutableDataManipulator
s and ImmutableValue
s for caching.
Note that this utility is not at all safe to create complex objects that require pre-processing, it's always simpler to just call the constructors.
Modifier and Type | Method and Description |
---|---|
static <T> T |
createInstance(Class<T> objectClass,
Object... args) |
static <T> T |
createUnsafeInstance(Class<T> objectClass,
Object... args) |
static <T> Constructor<T> |
findConstructor(Class<T> objectClass,
Object... args) |
public static <T> T createUnsafeInstance(Class<T> objectClass, Object... args) throws IllegalAccessException, InvocationTargetException, InstantiationException
public static <T> Constructor<T> findConstructor(Class<T> objectClass, Object... args)