public class DomainTransportMarshaller extends Object implements org.springframework.oxm.Marshaller, org.springframework.oxm.Unmarshaller, org.springframework.beans.factory.InitializingBean
Marshaller and Unmarshaller that handles the
conversion to the targetType. The actual marshalling and
unmarshalling is delegated to the supplied Marshaller and
Unmarshaller.| Constructor and Description |
|---|
DomainTransportMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
OSRole<?> |
getRole() |
void |
marshal(Object graph,
Result result)
Steps performed:
Converts the object graph to the configured
transportType
Delegates marshal to the supplied unmarshaller
|
void |
setDomainTransportConversionService(org.springframework.core.convert.ConversionService domainTransportConversionService)
Sets the conversion service used to convert to the target type.
|
void |
setMarshaller(org.springframework.oxm.Marshaller marshaller)
Sets the marshaller to use.
|
void |
setRole(OSRole<?> role) |
void |
setUnmarshaller(org.springframework.oxm.Unmarshaller unmarshaller)
Sets the unmarshaller to use.
|
boolean |
supports(Class<?> clazz) |
Object |
unmarshal(Source source)
Steps performed:
Delegates unmarshal to the supplied
unmarshaller
Converts the unmarshalled object graph to the configured
domainType
|
public Object unmarshal(Source source) throws IOException, org.springframework.oxm.XmlMappingException
unmarshallerdomainTypeunmarshal in interface org.springframework.oxm.UnmarshallerIOExceptionorg.springframework.oxm.XmlMappingExceptionUnmarshaller.unmarshal(javax.xml.transform.Source)public void marshal(Object graph, Result result) throws IOException, org.springframework.oxm.XmlMappingException
transportTypeunmarshallermarshal in interface org.springframework.oxm.MarshallerIOExceptionorg.springframework.oxm.XmlMappingExceptionMarshaller.marshal(java.lang.Object,
javax.xml.transform.Result)public boolean supports(Class<?> clazz)
supports in interface org.springframework.oxm.Marshallersupports in interface org.springframework.oxm.Unmarshallerpublic void setMarshaller(org.springframework.oxm.Marshaller marshaller)
marshaller - the marshaller to usepublic void setUnmarshaller(org.springframework.oxm.Unmarshaller unmarshaller)
unmarshaller - the unmarshaller to usepublic void setDomainTransportConversionService(org.springframework.core.convert.ConversionService domainTransportConversionService)
domainTransportConversionService - the conversion service to usepublic OSRole<?> getRole()
OSRole used for conversion to/from domain objects.public void setRole(OSRole<?> role)
role - the OSRole to use for conversion to/from domain objects.Copyright © 2006–2017 Esito AS. All rights reserved.