public class InstantiateFactory<T> extends Object implements Factory<T>
WARNING: from v4.1 onwards this class will not be serializable anymore in order to prevent potential remote code execution exploits. Please refer to COLLECTIONS-580 for more details.
| 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, clonedNullPointerException - if classToInstantiate is nullIllegalArgumentException - if paramTypes does not match argsCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.