Warning
from v4.1 onwards this class will not be serializable anymore in order to prevent potential remote code execution exploits. Please refer to COLLECTIONS-580 for more details.
| Modifier and Type | Field and Description |
|---|---|
| private final Object[] | iArgs
The constructor arguments |
| private final Class | iParamTypes
The constructor parameter types |
| private static final Transformer | NO_ARG_INSTANCE
Singleton instance that uses the no arg constructor |
| Access | Constructor and Description |
|---|---|
| private | |
| public | InstantiateTransformer(final Class<?>[]
the constructor parameter types paramTypes, final Object[] the constructor arguments args)Constructor that performs no validation. |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type of the objects to be created T> Transformer | |
| public static < the type of the objects to be created T> Transformer | Returns: an instantiate transformerthe constructor parameter types paramTypes, final Object[] the constructor arguments args)Transformer method that performs validation. |
| public T | Returns: the transformed resultthe input object to transform input)Implements org. |
| iArgs | back to summary |
|---|---|
| private final Object[] iArgs The constructor arguments | |
| iParamTypes | back to summary |
|---|---|
| private final Class<?>[] iParamTypes The constructor parameter types | |
| NO_ARG_INSTANCE | back to summary |
|---|---|
| private static final Transformer<I, O> NO_ARG_INSTANCE Singleton instance that uses the no arg constructor
| |
| InstantiateTransformer | back to summary |
|---|---|
| private InstantiateTransformer() Constructor for no arg instance. | |
| InstantiateTransformer | back to summary |
|---|---|
| public InstantiateTransformer(final Class<?>[] paramTypes, final Object[] args) Constructor that performs no validation.
Use Note from 4.0, the input parameters will be cloned | |
| instantiateTransformer | back to summary |
|---|---|
| public static <T> Transformer Get a typed no-arg instance.
| |
| instantiateTransformer | back to summary |
|---|---|
| public static <T> Transformer Transformer method that performs validation.
| |
| transform | back to summary |
|---|---|
| public T transform(final Class<? extends T> input) Implements org. Transforms the input Class object to a result by instantiation. | |