public class MethodInvoker
extends java.lang.Object
Constructor and Description |
---|
MethodInvoker() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
applyTypeConversion(java.lang.Object value,
java.lang.Class targetType)
Apply type conversion on the supplied value
|
java.lang.Object |
invoke(MethodSignature signature,
java.lang.Object bean,
java.lang.Object argumentSource)
Invoke the method on the bean provided.
|
void |
setConversionService(ConversionService conversionService)
Sets the conversion service to convert argument values as needed.
|
public void setConversionService(ConversionService conversionService)
public java.lang.Object invoke(MethodSignature signature, java.lang.Object bean, java.lang.Object argumentSource) throws MethodInvocationException
signature
- the definition of the method to invoke, including the method name and the method argument typesbean
- the bean to invokeargumentSource
- the source for method argumentsMethodInvocationException
- the method could not be invokedprotected java.lang.Object applyTypeConversion(java.lang.Object value, java.lang.Class targetType)
value
- the raw value to be convertedtargetType
- the target type for the conversion