org.axonframework.serializer.bson
Class DBObjectToStringContentTypeConverter

java.lang.Object
  extended by org.axonframework.serializer.AbstractContentTypeConverter<com.mongodb.DBObject,String>
      extended by org.axonframework.serializer.bson.DBObjectToStringContentTypeConverter
All Implemented Interfaces:
ContentTypeConverter<com.mongodb.DBObject,String>

public class DBObjectToStringContentTypeConverter
extends AbstractContentTypeConverter<com.mongodb.DBObject,String>

ContentTypeConverter implementation that converts a DBObject structure into a String containing its Binary JSON representation.

Since:
2.0
Author:
Allard Buijze

Constructor Summary
DBObjectToStringContentTypeConverter()
           
 
Method Summary
 String convert(com.mongodb.DBObject original)
          Converts the given object into another.
 Class<com.mongodb.DBObject> expectedSourceType()
          The expected type of input data.
 Class<String> targetType()
          The returned type of IntermediateRepresentation
 
Methods inherited from class org.axonframework.serializer.AbstractContentTypeConverter
convert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBObjectToStringContentTypeConverter

public DBObjectToStringContentTypeConverter()
Method Detail

expectedSourceType

public Class<com.mongodb.DBObject> expectedSourceType()
Description copied from interface: ContentTypeConverter
The expected type of input data.

Returns:
the expected data format in IntermediateRepresentation

targetType

public Class<String> targetType()
Description copied from interface: ContentTypeConverter
The returned type of IntermediateRepresentation

Returns:
the output data format in IntermediateRepresentation

convert

public String convert(com.mongodb.DBObject original)
Description copied from interface: ContentTypeConverter
Converts the given object into another. Typically, these values are contained by a SerializedObject instance.

Parameters:
original - the value to convert
Returns:
the converted value


Copyright © 2010-2016. All Rights Reserved.