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