|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections.functors.InstantiateTransformer
public class InstantiateTransformer
Transformer implementation that creates a new object instance by reflection.
| Field Summary | |
|---|---|
static InstantiateTransformer |
NO_ARG_INSTANCE
Singleton instance that uses the no arg constructor |
| Constructor Summary | |
|---|---|
InstantiateTransformer(Class[] paramTypes,
Object[] args)
Constructor that performs no validation. |
|
| Method Summary | |
|---|---|
static InstantiateTransformer |
getInstance(Class[] paramTypes,
Object[] args)
Transformer method that performs validation. |
Object |
transform(Class input)
Transforms the input Class object to a result by instantiation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final InstantiateTransformer NO_ARG_INSTANCE
| Constructor Detail |
|---|
public InstantiateTransformer(Class[] paramTypes,
Object[] args)
getInstance if you want that.
paramTypes - the constructor parameter types, not clonedargs - the constructor arguments, not cloned| Method Detail |
|---|
public static InstantiateTransformer getInstance(Class[] paramTypes,
Object[] args)
paramTypes - the constructor parameter typesargs - the constructor arguments
public Object transform(Class input)
transform in interface Transformer<Class,Object>input - the input object to transform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||