Interface XStreamMarshallerExtension
-
public interface XStreamMarshallerExtension
Represents 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.MapperWrapper
chainMapperWrapper(com.thoughtworks.xstream.mapper.MapperWrapper next)
Enables additionalMapperWrapper
s by chaining them to the provided one.void
extend(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 additionalMapperWrapper
s 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 thenext
MapperWrapper into the constructor to make sure the chain does not get brokenDefault implementation: identity
- Parameters:
next
- the nextMapperWrapper
in the chain
-
-