public class InstantiateTransformer extends java.lang.Object implements Transformer, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static Transformer |
NO_ARG_INSTANCE
Singleton instance that uses the no arg constructor
|
Constructor and Description |
---|
InstantiateTransformer(java.lang.Class[] paramTypes,
java.lang.Object[] args)
Constructor that performs no validation.
|
Modifier and Type | Method and Description |
---|---|
static Transformer |
getInstance(java.lang.Class[] paramTypes,
java.lang.Object[] args)
Transformer method that performs validation.
|
java.lang.Object |
transform(java.lang.Object input)
Transforms the input Class object to a result by instantiation.
|
public static final Transformer NO_ARG_INSTANCE
public InstantiateTransformer(java.lang.Class[] paramTypes, java.lang.Object[] args)
getInstance
if you want that.paramTypes
- the constructor parameter types, not clonedargs
- the constructor arguments, not clonedpublic static Transformer getInstance(java.lang.Class[] paramTypes, java.lang.Object[] args)
paramTypes
- the constructor parameter typesargs
- the constructor argumentspublic java.lang.Object transform(java.lang.Object input)
transform
in interface Transformer
input
- the input object to transformCopyright © 2001-2012 Apache Software Foundation. All Rights Reserved.