|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.serializer.SerializedObjectHolder
public class SerializedObjectHolder
Holder that keeps references to serialized representations of a payload and meta data of a specific message. Typically, this object should not live longer than the message object is is attached to.
| Constructor Summary | |
|---|---|
SerializedObjectHolder(Message message)
Initialize the holder for the serialized representations of the payload and meta data of given message |
|
| Method Summary | ||
|---|---|---|
|
serializeMetaData(Serializer serializer,
Class<T> expectedRepresentation)
Serialize the meta data of this message using given serializer, using given
expectedRepresentation. |
|
|
serializePayload(Serializer serializer,
Class<T> expectedRepresentation)
Serialize the payload of this message using given serializer, using given
expectedRepresentation. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerializedObjectHolder(Message message)
message
message - The message to initialize the holder for| Method Detail |
|---|
public <T> SerializedObject<T> serializePayload(Serializer serializer,
Class<T> expectedRepresentation)
SerializationAwareserializer, using given
expectedRepresentation. This method should return the same SerializedObject instance when
invoked multiple times using the same serializer.
serializePayload in interface SerializationAwareT - The type of data to serialize toserializer - The serializer to serialize payload withexpectedRepresentation - The type of data to serialize to
public <T> SerializedObject<T> serializeMetaData(Serializer serializer,
Class<T> expectedRepresentation)
SerializationAwareserializer, using given
expectedRepresentation. This method should return the same SerializedObject instance when
invoked multiple times using the same serializer.
serializeMetaData in interface SerializationAwareT - The type of data to serialize toserializer - The serializer to serialize meta data withexpectedRepresentation - The type of data to serialize to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||