org.axonframework.mongo3.serializer.bson
Class StringToDBObjectContentTypeConverter

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

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

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

Since:
2.0
Author:
Allard Buijze

Constructor Summary
StringToDBObjectContentTypeConverter()
           
 
Method Summary
 com.mongodb.DBObject convert(String original)
          Converts the given object into another.
 Class<String> expectedSourceType()
          The expected type of input data.
 Class<com.mongodb.DBObject> 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

StringToDBObjectContentTypeConverter

public StringToDBObjectContentTypeConverter()
Method Detail

expectedSourceType

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

Returns:
the expected data format in IntermediateRepresentation

targetType

public Class<com.mongodb.DBObject> targetType()
Description copied from interface: ContentTypeConverter
The returned type of IntermediateRepresentation

Returns:
the output data format in IntermediateRepresentation

convert

public com.mongodb.DBObject convert(String 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.