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 array of reflection arguments |
| private final String | iMethodName
The method name to call |
| private final Class | iParamTypes
The array of reflection parameter types |
| Access | Constructor and Description |
|---|---|
| private | |
| public | InvokerTransformer(final String
the method to call methodName, 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 input type I, the output type O> Transformer | Returns: an invoker transformerthe method name to call methodName)Gets an instance of this transformer calling a specific method with no arguments. |
| public static < the input type I, the output type O> Transformer | Returns: an invoker transformerthe method name to call methodName, final Class<?>[] the parameter types of the method paramTypes, final Object[] the arguments to pass to the method args)Gets an instance of this transformer calling a specific method with specific values. |
| public O | Returns: the transformed result, null if null inputthe input object to transform input)Implements org. |
| iArgs | back to summary |
|---|---|
| private final Object[] iArgs The array of reflection arguments | |
| iMethodName | back to summary |
|---|---|
| private final String iMethodName The method name to call | |
| iParamTypes | back to summary |
|---|---|
| private final Class<?>[] iParamTypes The array of reflection parameter types | |
| InvokerTransformer | back to summary |
|---|---|
| private InvokerTransformer(final String methodName) Constructor for no arg instance.
| |
| InvokerTransformer | back to summary |
|---|---|
| public InvokerTransformer(final String methodName, final Class<?>[] paramTypes, final Object[] args) Constructor that performs no validation.
Use Note from 4.0, the input parameters will be cloned | |
| invokerTransformer | back to summary |
|---|---|
| public static <I, O> Transformer Gets an instance of this transformer calling a specific method with no arguments.
| |
| invokerTransformer | back to summary |
|---|---|
| public static <I, O> Transformer Gets an instance of this transformer calling a specific method with specific values.
| |
| transform | back to summary |
|---|---|
| public O transform(final Object input) Implements org. Transforms the input to result by invoking a method on the input.
| |