Class AnnotatedEntityIdResolverDefinition
java.lang.Object
org.axonframework.modelling.entity.annotation.AnnotatedEntityIdResolverDefinition
- All Implemented Interfaces:
EntityIdResolverDefinition
public class AnnotatedEntityIdResolverDefinition
extends Object
implements EntityIdResolverDefinition
EntityIdResolverDefinition that converts the payload of incoming messages based on the
expected payload type of the message
handler in the model, and then looks for a TargetEntityId-annotated
member in the payload, through the AnnotationBasedEntityIdResolver.- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<E,ID> EntityIdResolver <ID> createIdResolver(Class<E> entityType, Class<ID> idType, AnnotatedEntityMetamodel<E> entityMetamodel, Configuration configuration) Creates anEntityIdResolverfor the given entity type and identifier type.
-
Constructor Details
-
AnnotatedEntityIdResolverDefinition
public AnnotatedEntityIdResolverDefinition()
-
-
Method Details
-
createIdResolver
public <E,ID> EntityIdResolver<ID> createIdResolver(@Nonnull Class<E> entityType, @Nonnull Class<ID> idType, @Nonnull AnnotatedEntityMetamodel<E> entityMetamodel, @Nonnull Configuration configuration) Description copied from interface:EntityIdResolverDefinitionCreates anEntityIdResolverfor the given entity type and identifier type.- Specified by:
createIdResolverin interfaceEntityIdResolverDefinition- Type Parameters:
E- The type of the entity for which the resolver is created.ID- The type of the identifier for which the resolver is created.- Parameters:
entityType- The type of the entity for which the resolver is created.idType- The type of the identifier for which the resolver is created.entityMetamodel- The metamodel of the entity.configuration- The configuration of the application, providing access to the components available.- Returns:
- The
EntityIdResolverfor the given entity type and identifier type.
-