Class ConcreteEntityMetamodel<E>

java.lang.Object
org.axonframework.modelling.entity.ConcreteEntityMetamodel<E>
Type Parameters:
E - The type of the entity this metamodel describes.
All Implemented Interfaces:
DescribableComponent, EntityMetamodel<E>, EntityEvolver<E>

public class ConcreteEntityMetamodel<E> extends Object implements DescribableComponent, EntityMetamodel<E>
Implementation of the EntityMetamodel interface that enables the definition of command handlers and child entities for a given entity type E. Optionally, an EntityEvolver can be provided to evolve the entity state based on events. If no EntityEvolver is provided, state can exclusively be changed through command handlers.

During the handling of commands, handlers defined in child entities take precedence over the parent entity's command handlers. Event handlers are invoked on both the parent and child models, with child models being invoked first.

Since:
5.0.0
Author:
Mitchell Herrijgers