| java.lang.Object org.springframework.binding.method.MethodInvoker
MethodInvoker | public class MethodInvoker (Code) | | A helper for invoking typed methods on abritrary objects, with support for
argument value type conversion from values retrieved from a argument
attribute source.
author: Keith Donald |
applyTypeConversion | protected Object applyTypeConversion(Object parameterValue, Class targetType)(Code) | | Apply type conversion on the event parameter if neccessary
Parameters: parameterValue - the raw argument value Parameters: targetType - the target type for the matching method argument the converted method argument |
invoke | public Object invoke(MethodSignature signature, Object bean, Object argumentSource) throws MethodInvocationException(Code) | | Invoke the method on the bean provided. Argument values are pulled from
the provided argument source.
Parameters: signature - the definition of the method to invoke, including themethod name and the method argument types Parameters: bean - the bean to invoke Parameters: argumentSource - the source for method arguments the invoked method's return value throws: MethodInvocationException - the method could not be invoked |
setConversionService | public void setConversionService(ConversionService conversionService)(Code) | | Sets the conversion service to convert argument values as needed.
|
|
|