|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.binding.method.MethodInvoker
public class MethodInvoker
A helper for invoking typed methods on abritrary objects, with support for argument value type conversion from values retrieved from a argument attribute source.
| Constructor Summary | |
|---|---|
MethodInvoker()
|
|
| Method Summary | |
|---|---|
protected java.lang.Object |
applyTypeConversion(java.lang.Object parameterValue,
java.lang.Class targetType)
Apply type conversion on the event parameter if neccessary |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodInvoker()
| Method Detail |
|---|
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 arguments
MethodInvocationException - the method could not be invoked
protected java.lang.Object applyTypeConversion(java.lang.Object parameterValue,
java.lang.Class targetType)
parameterValue - the raw argument valuetargetType - the target type for the matching method argument
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||