org.boon.slumberdb.serialization.JsonSerializer Maven / Gradle / Ivy
package org.boon.slumberdb.serialization;
import org.boon.core.Function;
import org.boon.json.serializers.impl.JsonSimpleSerializerImpl;
/**
* Created by Richard on 4/9/14.
*/
public class JsonSerializer implements Function {
/**
* JSON valueObjectConverter we are using.
*/
protected JsonSimpleSerializerImpl serializer = new JsonSimpleSerializerImpl();
public JsonSerializer(Class type) {
}
@Override
public String apply(T t) {
return serializer.serialize(t).toString();
}
}