Class EventUpcasterChain

All Implemented Interfaces:
EventUpcaster, Upcaster<IntermediateEventRepresentation>

public class EventUpcasterChain extends GenericUpcasterChain<IntermediateEventRepresentation> implements EventUpcaster
Upcaster chain used to upcast event representations.

Upcasters expecting different serialized object types may be merged into a single chain, as long as the order of related upcasters can be guaranteed.

Since:
3.0
Author:
Rene de Waele
  • Constructor Details

    • EventUpcasterChain

      public EventUpcasterChain(EventUpcaster... upcasters)
      Initializes an upcaster chain from one or more upcasters.
      Parameters:
      upcasters - the upcasters to chain
    • EventUpcasterChain

      public EventUpcasterChain(List<? extends EventUpcaster> upcasters)
      Initializes an upcaster chain from the given list of upcasters.
      Parameters:
      upcasters - the upcasters to chain