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(Class<E> entityType, Class<ID> idType, EntityMetamodel<E> entityMetamodel, 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