Class AnnotationBasedEntityIdResolverDefinition

java.lang.Object
org.axonframework.modelling.annotation.AnnotationBasedEntityIdResolverDefinition
All Implemented Interfaces:
EntityIdResolverDefinition

public class AnnotationBasedEntityIdResolverDefinition extends Object implements EntityIdResolverDefinition
Definition for an EntityIdResolver that uses annotation to resolve the entity identifier.
Since:
5.0.0
Author:
Mitchell Herrijgers
  • Constructor Details

    • AnnotationBasedEntityIdResolverDefinition

      public AnnotationBasedEntityIdResolverDefinition()
  • 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: EntityIdResolverDefinition
      Creates an EntityIdResolver for the given entity type and identifier type.
      Specified by:
      createIdResolver in interface EntityIdResolverDefinition
      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 EntityIdResolver for the given entity type and identifier type.