org.springframework.beans.support
Class ArgumentConvertingMethodInvoker
java.lang.Object
org.springframework.util.MethodInvoker
org.springframework.beans.support.ArgumentConvertingMethodInvoker
- Direct Known Subclasses:
- MethodInvokingFactoryBean, MethodInvokingJobDetailFactoryBean, MethodInvokingTimerTaskFactoryBean
- public class ArgumentConvertingMethodInvoker
- extends MethodInvoker
Subclass of MethodInvoker that tries to convert the given arguments
for the actual target method via BeanWrapperImpl.
- Since:
- 1.1
- Author:
- Juergen Hoeller
- See Also:
BeanWrapperImpl.doTypeConversionIfNecessary(java.lang.Object, java.lang.Class)
Methods inherited from class org.springframework.util.MethodInvoker |
getArguments, getPreparedMethod, getTargetClass, getTargetMethod, getTargetObject, invoke, setArguments, setStaticMethod, setTargetClass, setTargetMethod, setTargetObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArgumentConvertingMethodInvoker
public ArgumentConvertingMethodInvoker()
registerCustomEditor
public void registerCustomEditor(Class requiredType,
PropertyEditor propertyEditor)
- Register the given custom property editor for all properties
of the given type.
- Parameters:
requiredType
- type of the propertypropertyEditor
- editor to register- See Also:
BeanWrapper.registerCustomEditor(java.lang.Class, java.beans.PropertyEditor)
prepare
public void prepare()
throws ClassNotFoundException,
NoSuchMethodException
- Description copied from class:
MethodInvoker
- Prepare the specified method.
The method can be invoked any number of times afterwards.
- Overrides:
prepare
in class MethodInvoker
- Throws:
ClassNotFoundException
NoSuchMethodException
- See Also:
MethodInvoker.getPreparedMethod()
,
MethodInvoker.invoke()
Copyright (C) 2003-2004 The Spring Framework Project.