public class InstantiateFactory extends Object implements Factory, Serializable
| Constructor and Description |
|---|
InstantiateFactory(Class classToInstantiate)
Constructor that performs no validation.
|
InstantiateFactory(Class classToInstantiate,
Class[] paramTypes,
Object[] args)
Constructor that performs no validation.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
create()
Creates an object using the stored constructor.
|
static Factory |
getInstance(Class classToInstantiate,
Class[] paramTypes,
Object[] args)
Factory method that performs validation.
|
public InstantiateFactory(Class classToInstantiate)
getInstance if you want that.classToInstantiate - the class to instantiatepublic InstantiateFactory(Class classToInstantiate, Class[] paramTypes, Object[] args)
getInstance if you want that.classToInstantiate - the class to instantiateparamTypes - the constructor parameter types, not clonedargs - the constructor arguments, not clonedpublic static Factory getInstance(Class classToInstantiate, Class[] paramTypes, Object[] args)
classToInstantiate - the class to instantiate, not nullparamTypes - the constructor parameter typesargs - the constructor argumentsCopyright © 2001–2016 The Apache Software Foundation. All rights reserved.