@Singleton public class JacksonSerializerFactory extends Object implements SerializerFactory
Modifier and Type | Field and Description |
---|---|
static String |
BINDING_NAME |
DEFAULT, JACKSON
Constructor and Description |
---|
JacksonSerializerFactory(akka.actor.ActorSystem system) |
JacksonSerializerFactory(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
For testing purposes
|
Modifier and Type | Method and Description |
---|---|
<MessageEntity> |
messageSerializerFor(Type type)
Get a message serializer for the given type.
|
public static String BINDING_NAME
@Inject public JacksonSerializerFactory(akka.actor.ActorSystem system)
public JacksonSerializerFactory(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public <MessageEntity> StrictMessageSerializer<MessageEntity> messageSerializerFor(Type type)
SerializerFactory
messageSerializerFor
in interface SerializerFactory
type
- The type to get a message serializer for.