Constructor and Description |
---|
SpringBlueprintConverter(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Object source,
ReifiedType targetType)
Return if this converter is able to convert the specified object to the
specified type.
|
Object |
convert(Object source,
ReifiedType targetType)
Convert the specified object to an instance of the specified type.
|
public SpringBlueprintConverter(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory)
public boolean canConvert(Object source, ReifiedType targetType)
Converter
canConvert
in interface Converter
source
- The source object s
to convert.targetType
- The target type T
.true
if the conversion is possible,
false
otherwise.public Object convert(Object source, ReifiedType targetType) throws Exception
Converter
convert
in interface Converter
source
- The source object s
to convert.targetType
- The target type T
.Exception
- If the conversion cannot succeed. This exception should
not be thrown when the canConvert
method has
returned true
.Copyright © 2006–2017. All rights reserved.