| java.lang.Object org.apache.commons.collections.functors.InstantiateFactory
InstantiateFactory | public class InstantiateFactory implements Factory,Serializable(Code) | | Factory implementation that creates a new object instance by reflection.
since: Commons Collections 3.0 version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $ author: Stephen Colebourne |
InstantiateFactory | public InstantiateFactory(Class classToInstantiate)(Code) | | Constructor that performs no validation.
Use getInstance if you want that.
Parameters: classToInstantiate - the class to instantiate |
InstantiateFactory | public InstantiateFactory(Class classToInstantiate, Class[] paramTypes, Object[] args)(Code) | | Constructor that performs no validation.
Use getInstance if you want that.
Parameters: classToInstantiate - the class to instantiate Parameters: paramTypes - the constructor parameter types, not cloned Parameters: args - the constructor arguments, not cloned |
create | public Object create()(Code) | | Creates an object using the stored constructor.
the new object |
getInstance | public static Factory getInstance(Class classToInstantiate, Class[] paramTypes, Object[] args)(Code) | | Factory method that performs validation.
Parameters: classToInstantiate - the class to instantiate, not null Parameters: paramTypes - the constructor parameter types Parameters: args - the constructor arguments a new instantiate factory |
|
|