Class AnnotationBasedEntityEvolvingComponent<E>

java.lang.Object
org.axonframework.modelling.annotation.AnnotationBasedEntityEvolvingComponent<E>
Type Parameters:
E - The entity type to evolve.
All Implemented Interfaces:
EntityEvolver<E>, EntityEvolvingComponent<E>

public class AnnotationBasedEntityEvolvingComponent<E> extends Object implements EntityEvolvingComponent<E>
Implementation of the EntityEvolvingComponent that applies state changes through EventHandler(-meta)-annotated methods using the AnnotatedHandlerInspector.
Since:
5.0.0
Author:
Mateusz Nowak
See Also:
  • Constructor Details

    • AnnotationBasedEntityEvolvingComponent

      public AnnotationBasedEntityEvolvingComponent(@Nonnull Class<E> entityType, @Nonnull EventConverter converter, @Nonnull MessageTypeResolver messageTypeResolver)
      Initialize a new annotation-based EntityEvolver.
      Parameters:
      entityType - The type of entity this instance will handle state changes for.
      converter - The converter to use for converting event payloads to the handler's expected type.
      messageTypeResolver - The resolver to use for resolving the event message type.
    • AnnotationBasedEntityEvolvingComponent

      public AnnotationBasedEntityEvolvingComponent(@Nonnull Class<E> entityType, @Nonnull AnnotatedHandlerInspector<E> inspector, @Nonnull EventConverter converter, @Nonnull MessageTypeResolver messageTypeResolver)
      Initialize a new annotation-based EntityEvolver.
      Parameters:
      entityType - The type of entity this instance will handle state changes for.
      inspector - The inspector to use to find the annotated handlers on the entity.
      converter - The converter to use for converting event payloads to the handler's expected type.
      messageTypeResolver - The resolver to use for resolving the event message type.
  • Method Details