public class InstanceFactory
extends Object
Constructor and Description |
---|
InstanceFactory() |
Modifier and Type | Method and Description |
---|---|
static Object |
newInstance(ClassLoader classLoader,
String className) |
static Object |
newInstance(ClassLoader classLoader,
String className,
Class<?>[] parameterTypes,
Object[] arguments) |
static Object |
newInstance(ClassLoader classLoader,
String className,
Class<?> parameterType,
Object argument) |
static Object |
newInstance(String className) |
static Object |
newInstance(String className,
Class<?>[] parameterTypes,
Object[] arguments) |
static Object |
newInstance(String className,
Class<?> parameterType,
Object argument) |
public static Object newInstance(ClassLoader classLoader, String className) throws Exception
Exception
public static Object newInstance(ClassLoader classLoader, String className, Class<?> parameterType, Object argument) throws Exception
Exception
public static Object newInstance(ClassLoader classLoader, String className, Class<?>[] parameterTypes, Object[] arguments) throws Exception
Exception
public static Object newInstance(String className) throws Exception
Exception
public static Object newInstance(String className, Class<?> parameterType, Object argument) throws Exception
Exception
public static Object newInstance(String className, Class<?>[] parameterTypes, Object[] arguments) throws Exception
Exception