org.springframework.beans.support
Class ArgumentConvertingMethodInvoker

java.lang.Object
  extended byorg.springframework.util.MethodInvoker
      extended byorg.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)

Nested Class Summary
 
Nested classes inherited from class org.springframework.util.MethodInvoker
MethodInvoker.VoidType
 
Field Summary
 
Fields inherited from class org.springframework.util.MethodInvoker
VOID
 
Constructor Summary
ArgumentConvertingMethodInvoker()
           
 
Method Summary
 void prepare()
          Prepare the specified method.
 void registerCustomEditor(Class requiredType, PropertyEditor propertyEditor)
          Register the given custom property editor for all properties of the given type.
 
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
 

Constructor Detail

ArgumentConvertingMethodInvoker

public ArgumentConvertingMethodInvoker()
Method Detail

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 property
propertyEditor - 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.