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.
|
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–2013 The Apache Software Foundation. All rights reserved.