org.apache.commons.collections.functors
public class InstantiateFactory extends Object implements Factory, Serializable
Since: Commons Collections 3.0
Version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $
| Constructor Summary | |
|---|---|
| InstantiateFactory(Class classToInstantiate)
Constructor that performs no validation.
| |
| InstantiateFactory(Class classToInstantiate, Class[] paramTypes, Object[] args)
Constructor that performs no validation.
| |
| Method Summary | |
|---|---|
| Object | create()
Creates an object using the stored constructor.
|
| static Factory | getInstance(Class classToInstantiate, Class[] paramTypes, Object[] args)
Factory method that performs validation.
|
getInstance if you want that.
Parameters: classToInstantiate the class to instantiate
getInstance if you want that.
Parameters: classToInstantiate the class to instantiate paramTypes the constructor parameter types, not cloned args the constructor arguments, not cloned
Returns: the new object
Parameters: classToInstantiate the class to instantiate, not null paramTypes the constructor parameter types args the constructor arguments
Returns: a new instantiate factory