Class AnnotatedEntityIdResolverDefinition

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

@Deprecated(since="5.3.0") public class AnnotatedEntityIdResolverDefinition extends Object implements EntityIdResolverDefinition
Deprecated.
Performing the payload conversion inside the resolver ties it to the AnnotatedEntityMetamodel, which prevents the EntityMetamodel component from being decorated or replaced. Payload conversion is now applied independently of the metamodel component, so annotation-based id resolution only needs the plain AnnotationBasedEntityIdResolverDefinition. This definition remains functional for existing configurations but requires the resolved EntityMetamodel to be an AnnotatedEntityMetamodel.
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 Details

    • AnnotatedEntityIdResolverDefinition

      public AnnotatedEntityIdResolverDefinition()
      Deprecated.
  • Method Details

    • createIdResolver

      public <E, ID> EntityIdResolver<ID> createIdResolver(Class<E> entityType, Class<ID> idType, EntityMetamodel<E> entityMetamodel, Configuration configuration)
      Deprecated.
      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