Interface EntityMetamodel<E>

Type Parameters:
E - The type of the entity supported by this metamodel.
All Superinterfaces:
DescribableComponent, EntityEvolver<E>
All Known Implementing Classes:
AnnotatedEntityMetamodel, ConcreteEntityMetamodel, PolymorphicEntityMetamodel

public interface EntityMetamodel<E> extends EntityEvolver<E>, DescribableComponent
The messaging metamodel of entity type E, containing the information needed to handle commands and events. An EntityMetamodel can be created through the builder by using the forEntityType(Class) method. The metamodel can then be used to handle commands and events for an entity. If the entity already exists, the handleInstance(org.axonframework.messaging.commandhandling.CommandMessage, E, org.axonframework.messaging.core.unitofwork.ProcessingContext) method should be used to handle commands for the entity. If the entity is new, the handleCreate(org.axonframework.messaging.commandhandling.CommandMessage, org.axonframework.messaging.core.unitofwork.ProcessingContext) method should be used to handle commands for creating the entity.
Since:
5.0.0
Author:
Mitchell Herrijgers