public interface XStreamMarshallerExtension
| Modifier and Type | Method and Description |
|---|---|
default com.thoughtworks.xstream.mapper.MapperWrapper |
chainMapperWrapper(com.thoughtworks.xstream.mapper.MapperWrapper next)
Enables additional
MapperWrappers by chaining them to the provided one. |
void |
extend(XStreamMarshaller xStreamMarshaller)
Extends the provided marshaller, with e.g. custom converters.
|
void extend(XStreamMarshaller xStreamMarshaller)
xStreamMarshaller - the marshaller which should be extendeddefault com.thoughtworks.xstream.mapper.MapperWrapper chainMapperWrapper(com.thoughtworks.xstream.mapper.MapperWrapper next)
MapperWrappers 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 the next
MapperWrapper into the constructor to make sure the chain does not get broken
Default implementation: identitynext - the next MapperWrapper in the chainCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.