public class HierarchicalConversionService
extends org.springframework.core.convert.support.GenericConversionService
GenericConversionService that represents
an initially empty ConversionService that delegates to a parent ConversionService if no local converters
are registered.| Constructor and Description |
|---|
HierarchicalConversionService() |
HierarchicalConversionService(org.springframework.core.convert.ConversionService parent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.convert.TypeDescriptor targetType) |
Object |
convert(Object source,
org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.convert.TypeDescriptor targetType) |
static HierarchicalConversionService |
defaultConversionService() |
static HierarchicalConversionService |
defaultConversionService(org.springframework.core.convert.ConversionService parent) |
org.springframework.core.convert.ConversionService |
getParent() |
void |
setParent(org.springframework.core.convert.ConversionService parent) |
public HierarchicalConversionService()
public HierarchicalConversionService(org.springframework.core.convert.ConversionService parent)
public void setParent(org.springframework.core.convert.ConversionService parent)
public org.springframework.core.convert.ConversionService getParent()
public boolean canConvert(org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.convert.TypeDescriptor targetType)
canConvert in interface org.springframework.core.convert.ConversionServicecanConvert in class org.springframework.core.convert.support.GenericConversionServicepublic Object convert(Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
convert in interface org.springframework.core.convert.ConversionServiceconvert in class org.springframework.core.convert.support.GenericConversionServicepublic static HierarchicalConversionService defaultConversionService()
public static HierarchicalConversionService defaultConversionService(org.springframework.core.convert.ConversionService parent)
Copyright © 2017. All rights reserved.