public class ObjectFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object |
newObject(String className)
Creates a new instance of the object with the specified class name, using
the default constructor.
|
static Object |
newObject(String className,
Class<?>[] params,
Object[] args)
Creates a new instance of the object with the specified class name, using
the suplied arguments to the constructor.
|
public static Object newObject(String className)
className - the fully qualified name of the class.public static Object newObject(String className, Class<?>[] params, Object[] args)
className - the name of the classparams - the (formal) argument list of the class constructorargs - the (actual) argument list of the class constructor.Copyright © 2006–2018 Esito AS. All rights reserved.