Wrapper around a serializer that provides {@link SerializationAware} support. This class can either be used as awrapper around a Serializer, or as a static utility class.
The
serializePayload
and
serializeMetaData
methods on this class are aware of SerializationAware messages. When a Message implements that interface, serialization is delegated to that message to allow performance optimizations.
Using this class to serialize the payload and meta-data of Message is preferred over the serialization using the {@link Serializer} class.
@author Allard Buijze
@since 2.0