org.axonframework.serializer
Class AbstractContentTypeConverter<S,T>
java.lang.Object
org.axonframework.serializer.AbstractContentTypeConverter<S,T>
- Type Parameters:
S
- The source data type representing the serialized objectT
- The target data type representing the serialized object
- All Implemented Interfaces:
- ContentTypeConverter<S,T>
- Direct Known Subclasses:
- BlobToInputStreamConverter, ByteArrayToInputStreamConverter, ByteArrayToJsonNodeConverter, ByteArrayToStringConverter, DBObjectToStringContentTypeConverter, DBObjectToStringContentTypeConverter, Dom4JToByteArrayConverter, InputStreamToByteArrayConverter, InputStreamToDom4jConverter, InputStreamToXomConverter, JsonNodeToByteArrayConverter, StringToByteArrayConverter, StringToDBObjectContentTypeConverter, StringToDBObjectContentTypeConverter, XomToStringConverter
public abstract class AbstractContentTypeConverter<S,T>
- extends Object
- implements ContentTypeConverter<S,T>
Abstract implementation of the ContentTypeConverter for convenience purposes. It implements the convert(org.axonframework.serializer.SerializedObject)
method, based on information available through the other
methods.
- Since:
- 2.0
- Author:
- Allard Buijze
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractContentTypeConverter
public AbstractContentTypeConverter()
convert
public SerializedObject<T> convert(SerializedObject<S> original)
- Description copied from interface:
ContentTypeConverter
- Converts the data format of the given
original
IntermediateRepresentation to the target data type.
- Specified by:
convert
in interface ContentTypeConverter<S,T>
- Parameters:
original
- The source to convert
- Returns:
- the converted representation
Copyright © 2010-2016. All Rights Reserved.