Class BeanFactoryTypeConverter

java.lang.Object
org.springframework.statemachine.support.BeanFactoryTypeConverter
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.expression.TypeConverter

public class BeanFactoryTypeConverter extends Object implements org.springframework.expression.TypeConverter, org.springframework.beans.factory.BeanFactoryAware
Author:
Dave Syer, Oleg Zhurakousky, Gary Russell, Soby Chacko, Janne Valkealahti
  • Constructor Details

    • BeanFactoryTypeConverter

      public BeanFactoryTypeConverter()
      Instantiates a new bean factory type converter.
    • BeanFactoryTypeConverter

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

    • 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(Class<?> sourceType, 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 Object convertValue(Object value, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
      Specified by:
      convertValue in interface org.springframework.expression.TypeConverter