@Service public class DomainTransportConversionService extends Object implements org.springframework.core.convert.ConversionService
OSRole root node.
The shallow copy (the object creation and transfer of attribute values) is done by an implementation of @{link AbstractDomainTransportConverter} (one converter per domain/transport-pair, generated by g9).
| Constructor and Description |
|---|
DomainTransportConversionService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Class<?> sourceType,
Class<?> targetType) |
boolean |
canConvert(org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.convert.TypeDescriptor targetType) |
<T> T |
convert(Object source,
Class<T> targetType) |
Object |
convert(Object source,
org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.convert.TypeDescriptor targetType) |
void |
setDomainTransportConverterRegistry(DomainTransportConverterRegistry domainTransportConverterRegistry)
Set the registry that contains all converters for the transport and
domain types.
|
void |
setDomainTransportTypeConversionService(org.springframework.core.convert.ConversionService domainTransportTypeConversionService)
Sets the domain transport type conversion service.
|
public boolean canConvert(Class<?> sourceType, 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(Object source, Class<T> targetType)
convert in interface org.springframework.core.convert.ConversionServicepublic Object convert(Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
convert in interface org.springframework.core.convert.ConversionService@Autowired public void setDomainTransportConverterRegistry(DomainTransportConverterRegistry domainTransportConverterRegistry)
domainTransportConverterRegistry - the new domain transport converter registry@Autowired public void setDomainTransportTypeConversionService(org.springframework.core.convert.ConversionService domainTransportTypeConversionService)
domainTransportTypeConversionService - the new domain transport type conversion serviceCopyright © 2006–2020 Esito AS. All rights reserved.