| Modifier and Type | Field and Description |
|---|---|
private org.springframework.beans.factory.config.ConfigurableBeanFactory |
beanFactory |
private org.springframework.beans.TypeConverter |
typeConverter |
| Constructor and Description |
|---|
SpringBlueprintConverter(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(java.lang.Object source,
ReifiedType targetType)
Return if this converter is able to convert the specified object to the
specified type.
|
java.lang.Object |
convert(java.lang.Object source,
ReifiedType targetType)
Convert the specified object to an instance of the specified type.
|
private org.springframework.beans.TypeConverter |
getConverter() |
private final org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory
private volatile org.springframework.beans.TypeConverter typeConverter
public SpringBlueprintConverter(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory)
public boolean canConvert(java.lang.Object source,
ReifiedType targetType)
ConvertercanConvert in interface Convertersource - The source object s to convert.targetType - The target type T.true if the conversion is possible,
false otherwise.public java.lang.Object convert(java.lang.Object source,
ReifiedType targetType)
throws java.lang.Exception
Converterconvert in interface Convertersource - The source object s to convert.targetType - The target type T.java.lang.Exception - If the conversion cannot succeed. This exception should
not be thrown when the canConvert method has
returned true.private org.springframework.beans.TypeConverter getConverter()