|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.collections.functors.InstantiateFactory
public class InstantiateFactory
Factory implementation that creates a new object instance by reflection.
Constructor Summary | |
---|---|
InstantiateFactory(java.lang.Class classToInstantiate)
Constructor that performs no validation. |
|
InstantiateFactory(java.lang.Class classToInstantiate,
java.lang.Class[] paramTypes,
java.lang.Object[] args)
Constructor that performs no validation. |
Method Summary | |
---|---|
java.lang.Object |
create()
Creates an object using the stored constructor. |
static Factory |
getInstance(java.lang.Class classToInstantiate,
java.lang.Class[] paramTypes,
java.lang.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(java.lang.Class classToInstantiate)
getInstance
if you want that.
classToInstantiate
- the class to instantiatepublic InstantiateFactory(java.lang.Class classToInstantiate, java.lang.Class[] paramTypes, java.lang.Object[] args)
getInstance
if you want that.
classToInstantiate
- the class to instantiateparamTypes
- the constructor parameter types, not clonedargs
- the constructor arguments, not clonedMethod Detail |
---|
public static Factory getInstance(java.lang.Class classToInstantiate, java.lang.Class[] paramTypes, java.lang.Object[] args)
classToInstantiate
- the class to instantiate, not nullparamTypes
- the constructor parameter typesargs
- the constructor arguments
public java.lang.Object create()
create
in interface Factory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |