public class SpringBlueprintConverterService
extends java.lang.Object
implements org.springframework.core.convert.ConversionService
| Modifier and Type | Class and Description |
|---|---|
private static class |
SpringBlueprintConverterService.BlueprintConverterException |
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.beans.factory.config.ConfigurableBeanFactory |
cbf |
private boolean |
converterInitialized |
private java.util.List<Converter> |
converters |
private org.springframework.core.convert.ConversionService |
delegate
fallback delegate
|
private org.springframework.beans.SimpleTypeConverter |
typeConverter |
| Constructor and Description |
|---|
SpringBlueprintConverterService(org.springframework.core.convert.ConversionService delegate,
org.springframework.beans.factory.config.ConfigurableBeanFactory cbf) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.util.Collection<Converter> blueprintConverters) |
void |
add(Converter blueprintConverter) |
boolean |
canConvert(java.lang.Class<?> sourceType,
java.lang.Class<?> targetType) |
boolean |
canConvert(org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.convert.TypeDescriptor targetType) |
<T> T |
convert(java.lang.Object source,
java.lang.Class<T> targetType) |
java.lang.Object |
convert(java.lang.Object source,
org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.convert.TypeDescriptor targetType) |
private java.lang.Object |
doConvert(java.lang.Object source,
ReifiedType type) |
private void |
lazyInitConverter() |
private final org.springframework.core.convert.ConversionService delegate
private final java.util.List<Converter> converters
private final org.springframework.beans.SimpleTypeConverter typeConverter
private final org.springframework.beans.factory.config.ConfigurableBeanFactory cbf
private volatile boolean converterInitialized
public SpringBlueprintConverterService(org.springframework.core.convert.ConversionService delegate,
org.springframework.beans.factory.config.ConfigurableBeanFactory cbf)
public void add(Converter blueprintConverter)
public void add(java.util.Collection<Converter> blueprintConverters)
public boolean canConvert(java.lang.Class<?> sourceType,
java.lang.Class<?> targetType)
canConvert in interface org.springframework.core.convert.ConversionServicepublic boolean canConvert(org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.convert.TypeDescriptor targetType)
canConvert in interface org.springframework.core.convert.ConversionServicepublic <T> T convert(java.lang.Object source,
java.lang.Class<T> targetType)
convert in interface org.springframework.core.convert.ConversionServicepublic java.lang.Object convert(java.lang.Object source,
org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.convert.TypeDescriptor targetType)
convert in interface org.springframework.core.convert.ConversionServiceprivate void lazyInitConverter()
private java.lang.Object doConvert(java.lang.Object source,
ReifiedType type)