RESOLVED - BATCH-821: remove EventSerializer/Deserializer abstractions and use Marshaller/Unmarshaller directly
cleanup of now redundant classes
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
package org.springframework.batch.item.xml;
|
||||
|
||||
import javax.xml.stream.XMLEventReader;
|
||||
|
||||
/**
|
||||
* Deserializes XML fragment to domain object.
|
||||
* XML fragment is a standalone XML document corresponding to a single record.
|
||||
*
|
||||
* @author Robert Kasanicky
|
||||
*/
|
||||
public interface EventReaderDeserializer<T> {
|
||||
|
||||
T deserializeFragment(XMLEventReader eventReader);
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
package org.springframework.batch.item.xml;
|
||||
|
||||
import javax.xml.stream.XMLEventWriter;
|
||||
|
||||
/**
|
||||
* Interface wrapping the serialization of an object
|
||||
* to xml. Primarily useful for abstracting how an object
|
||||
* is serialized to an XMLEvent from a specific marshaller.
|
||||
*
|
||||
* @author Lucas Ward
|
||||
*
|
||||
*/
|
||||
public interface EventWriterSerializer<T> {
|
||||
|
||||
/**
|
||||
* Serialize an Object.
|
||||
*
|
||||
* @param output
|
||||
*/
|
||||
void serializeObject(XMLEventWriter writer, T output);
|
||||
}
|
||||
Reference in New Issue
Block a user