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
-
Constructor Summary
ConstructorDescriptionInstantiates a new bean factory type converter.BeanFactoryTypeConverter
(org.springframework.core.convert.ConversionService conversionService) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(Class<?> sourceType, Class<?> targetType) boolean
canConvert
(org.springframework.core.convert.TypeDescriptor sourceTypeDescriptor, org.springframework.core.convert.TypeDescriptor targetTypeDescriptor) convertValue
(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)
-
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 interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
-
canConvert
-
canConvert
public boolean canConvert(org.springframework.core.convert.TypeDescriptor sourceTypeDescriptor, org.springframework.core.convert.TypeDescriptor targetTypeDescriptor) - Specified by:
canConvert
in interfaceorg.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 interfaceorg.springframework.expression.TypeConverter
-