org.axonframework.serializer
Class AbstractContentTypeConverter<S,T>

java.lang.Object
  extended by org.axonframework.serializer.AbstractContentTypeConverter<S,T>
Type Parameters:
S - The source data type representing the serialized object
T - 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

Constructor Summary
AbstractContentTypeConverter()
           
 
Method Summary
 SerializedObject<T> convert(SerializedObject<S> original)
          Converts the data format of the given original IntermediateRepresentation to the target data type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.axonframework.serializer.ContentTypeConverter
convert, expectedSourceType, targetType
 

Constructor Detail

AbstractContentTypeConverter

public AbstractContentTypeConverter()
Method Detail

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.