@Singleton public final class DefaultSerializerDeserializer extends java.lang.Object implements Serializer, Deserializer
Serializer
and Deserializer
.Constructor and Description |
---|
DefaultSerializerDeserializer(io.micronaut.context.BeanLocator beanLocator) |
Modifier and Type | Method and Description |
---|---|
<T> T |
deserialize(javax.jms.Message message,
java.lang.Class<T> clazz)
Extract the body of the message into the specified type.
|
javax.jms.Message |
serialize(javax.jms.Session session,
java.lang.Object body)
Create a message from the body.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deserialize
public DefaultSerializerDeserializer(io.micronaut.context.BeanLocator beanLocator)
public <T> T deserialize(javax.jms.Message message, java.lang.Class<T> clazz)
Deserializer
deserialize
in interface Deserializer
T
- the typemessage
- the messageclazz
- the typepublic javax.jms.Message serialize(javax.jms.Session session, java.lang.Object body)
Serializer
serialize
in interface Serializer
session
- the JMS sessionbody
- the message body