Class XstreamRecordMarshaller<P>
- java.lang.Object
-
- org.jeasy.batch.extensions.xstream.XstreamRecordMarshaller<P>
-
- Type Parameters:
P- type of the record's payload
- All Implemented Interfaces:
org.jeasy.batch.core.marshaller.RecordMarshaller<P,java.lang.String>,org.jeasy.batch.core.processor.RecordProcessor<P,java.lang.String>
public class XstreamRecordMarshaller<P> extends java.lang.Object implements org.jeasy.batch.core.marshaller.RecordMarshaller<P,java.lang.String>Marshals an object to XML using XStream.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Constructor Summary
Constructors Constructor Description XstreamRecordMarshaller()Create a newXstreamRecordMarshaller.XstreamRecordMarshaller(com.thoughtworks.xstream.XStream xStream)Create a newXstreamRecordMarshaller.XstreamRecordMarshaller(java.lang.String elementName, java.lang.Class<?> type)Create a newXstreamRecordMarshaller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jeasy.batch.xml.XmlRecordprocessRecord(org.jeasy.batch.core.record.Record<P> record)
-
-
-
Constructor Detail
-
XstreamRecordMarshaller
public XstreamRecordMarshaller()
Create a newXstreamRecordMarshaller.
-
XstreamRecordMarshaller
public XstreamRecordMarshaller(java.lang.String elementName, java.lang.Class<?> type)Create a newXstreamRecordMarshaller.- Parameters:
elementName- the alias of the object in the corresponding xml tagtype- the type of the object to marshal
-
XstreamRecordMarshaller
public XstreamRecordMarshaller(com.thoughtworks.xstream.XStream xStream)
Create a newXstreamRecordMarshaller.- Parameters:
xStream- a pre-configured xstream instance
-
-