|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.collections.functors.InstantiateFactory
Factory implementation that creates a new object instance by reflection.
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InstantiateFactory(Class classToInstantiate)
getInstance if you want that.
classToInstantiate - the class to instantiate
public InstantiateFactory(Class classToInstantiate,
Class[] paramTypes,
Object[] args)
getInstance if you want that.
classToInstantiate - the class to instantiateparamTypes - the constructor parameter types, not clonedargs - the constructor arguments, not cloned| Method Detail |
public static Factory getInstance(Class classToInstantiate,
Class[] paramTypes,
Object[] args)
classToInstantiate - the class to instantiate, not nullparamTypes - the constructor parameter typesargs - the constructor arguments
public Object create()
create in interface Factory
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||