Package org.axonframework.modelling
Interface EntityEvolver<E>
- Type Parameters:
E- The entity type to evolve.
- All Known Subinterfaces:
EntityChildMetamodel<C,,P> EntityEvolvingComponent<E>,EntityMetamodel<E>
- All Known Implementing Classes:
AbstractEntityChildMetamodel,AnnotatedEntityMetamodel,AnnotationBasedEntityEvolvingComponent,ConcreteEntityMetamodel,ListEntityChildMetamodel,PayloadBasedEntityEvolver,PolymorphicEntityMetamodel,SimpleEntityEvolvingComponent,SingleEntityChildMetamodel
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface describing how to evolve a given
entity of type e based on a given
EventMessage.- Since:
- 5.0.0
- Author:
- Allard Buijze, Mateusz Nowak, Mitchell Herrijgers, Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescriptionevolve(E entity, EventMessage event, ProcessingContext context) Evolve the givenentityby applying the giveneventto it.
-
Method Details
-
evolve
Evolve the givenentityby applying the giveneventto it.- Parameters:
entity- The current entity to evolve with the givenevent.event- The event that might adjust theentity.context- The context within which to evolve theentityby the givenevent.- Returns:
- The evolved
entitybased on the givenevent, or the sameentitywhen nothing happened.
-