Interface XStreamMarshallerExtension
-
public interface XStreamMarshallerExtensionRepresents custom extension for the XStream marshaller.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default com.thoughtworks.xstream.mapper.MapperWrapperchainMapperWrapper(com.thoughtworks.xstream.mapper.MapperWrapper next)Enables additionalMapperWrappers by chaining them to the provided one.voidextend(XStreamMarshaller xStreamMarshaller)Extends the provided marshaller, with e.g. custom converters.
-
-
-
Method Detail
-
extend
void extend(XStreamMarshaller xStreamMarshaller)
Extends the provided marshaller, with e.g. custom converters.- Parameters:
xStreamMarshaller- the marshaller which should be extended
-
chainMapperWrapper
default com.thoughtworks.xstream.mapper.MapperWrapper chainMapperWrapper(com.thoughtworks.xstream.mapper.MapperWrapper next)
Enables additionalMapperWrappers by chaining them to the provided one.Example:
return new HibernateWrapper(next)- this will add the HibernateWrapper into the chain. Note that it is important to pass thenextMapperWrapper into the constructor to make sure the chain does not get brokenDefault implementation: identity
- Parameters:
next- the nextMapperWrapperin the chain
-
-