public abstract class DynamicClassFactory extends Object
Constructor and Description |
---|
DynamicClassFactory() |
Modifier and Type | Method and Description |
---|---|
protected static String |
compileClass(String className) |
static <T> T |
createInstance(String className,
Class<T> expectedType) |
static Class |
getCompiledClass(String className) |
public static <T> T createInstance(String className, Class<T> expectedType) throws ClassLoadException
ClassLoadException
public static Class getCompiledClass(String className) throws ClassLoadException
ClassLoadException
protected static String compileClass(String className) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException
Copyright © 2019 JavaLite. All rights reserved.