Spring Integration

org.springframework.integration.util
Class BeanFactoryTypeConverter

java.lang.Object
  extended by org.springframework.integration.util.BeanFactoryTypeConverter
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, org.springframework.expression.TypeConverter

public class BeanFactoryTypeConverter
extends java.lang.Object
implements org.springframework.expression.TypeConverter, org.springframework.beans.factory.BeanFactoryAware

Author:
Dave Syer, Oleg Zhurakousky

Constructor Summary
BeanFactoryTypeConverter()
           
BeanFactoryTypeConverter(org.springframework.core.convert.ConversionService conversionService)
           
 
Method Summary
 boolean canConvert(java.lang.Class<?> sourceType, java.lang.Class<?> targetType)
           
 boolean canConvert(org.springframework.core.convert.TypeDescriptor sourceTypeDescriptor, org.springframework.core.convert.TypeDescriptor targetTypeDescriptor)
           
 java.lang.Object convertValue(java.lang.Object value, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
           
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 void setConversionService(org.springframework.core.convert.ConversionService conversionService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanFactoryTypeConverter

public BeanFactoryTypeConverter()

BeanFactoryTypeConverter

public BeanFactoryTypeConverter(org.springframework.core.convert.ConversionService conversionService)
Method Detail

setConversionService

public void setConversionService(org.springframework.core.convert.ConversionService conversionService)

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
                    throws org.springframework.beans.BeansException
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
Throws:
org.springframework.beans.BeansException

canConvert

public boolean canConvert(java.lang.Class<?> sourceType,
                          java.lang.Class<?> targetType)

canConvert

public boolean canConvert(org.springframework.core.convert.TypeDescriptor sourceTypeDescriptor,
                          org.springframework.core.convert.TypeDescriptor targetTypeDescriptor)
Specified by:
canConvert in interface org.springframework.expression.TypeConverter

convertValue

public java.lang.Object convertValue(java.lang.Object value,
                                     org.springframework.core.convert.TypeDescriptor sourceType,
                                     org.springframework.core.convert.TypeDescriptor targetType)
Specified by:
convertValue in interface org.springframework.expression.TypeConverter

Spring Integration