public abstract class UpcastUtils extends Object
Modifier and Type | Method and Description |
---|---|
static List<DomainEventMessage> |
upcastAndDeserialize(SerializedDomainEventData entry,
Object aggregateIdentifier,
Serializer serializer,
UpcasterChain upcasterChain,
boolean skipUnknownTypes)
Upcasts and deserializes the given
entry using the given serializer and
upcasterChain . |
public static List<DomainEventMessage> upcastAndDeserialize(SerializedDomainEventData entry, Object aggregateIdentifier, Serializer serializer, UpcasterChain upcasterChain, boolean skipUnknownTypes)
entry
using the given serializer
and
upcasterChain
. This code is optimized to deserialize the meta-data only once in case it has been
used in the upcasting process.
The list of events returned contains lazy deserializing events for optimization purposes. Events represented
with
unknown classes are ignored, and not returned.entry
- the entry containing the data of the serialized eventaggregateIdentifier
- the original aggregate identifier to use in the deserialized events or
null
to use the deserialized versionserializer
- the serializer to deserialize the event withupcasterChain
- the chain containing the upcasters to upcast the events withskipUnknownTypes
- whether unknown serialized types should be ignoredCopyright © 2010-2014. All Rights Reserved.