Class EventTypeUpcaster.Builder
java.lang.Object
org.axonframework.serialization.upcasting.event.EventTypeUpcaster.Builder
- Enclosing class:
- EventTypeUpcaster
Builder class to instantiate an
EventTypeUpcaster.-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate aEventTypeUpcaster.Builderas a shorthand to create anEventTypeUpcaster. -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
Builder
Instantiate aEventTypeUpcaster.Builderas a shorthand to create anEventTypeUpcaster.- Parameters:
expectedPayloadType- the expected event payload type this upcaster should react onexpectedRevision- the expected event revision this upcaster should react on
-
-
Method Details
-
to
Create anEventTypeUpcasterwhich upcasts "to" the givenpayloadTypeandrevision. This method will use the fully qualified class name of the givenpayloadTypeas theupcastedPayloadType.- Parameters:
payloadType- the payload type the upcaster should upcast "to"revision- the revision the upcaster should upcast "to"- Returns:
- an
EventTypeUpcasterupcasting "to" the givenpayloadTypeandrevision
-
to
- Parameters:
payloadType- the payload type the upcaster should upcast "to"revision- the revision the upcaster should upcast "to"- Returns:
- an
EventTypeUpcasterupcasting "to" the givenpayloadTypeandrevision
-