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.
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, EntityMetamodel<E> entityMetamodel, Configuration configuration) Deprecated.Creates anEntityIdResolverfor the given entity type and identifier type.
-
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: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 createdID- the type of the identifier for which the resolver is created- Parameters:
entityType- the type of the entity for which the resolver is createdidType- the type of the identifier for which the resolver is createdentityMetamodel- the metamodel of the entityconfiguration- the configuration of the application, providing access to the components available- Returns:
- the
EntityIdResolverfor the given entity type and identifier type
-
AnnotatedEntityMetamodel, which prevents theEntityMetamodelcomponent from being decorated or replaced. Payload conversion is now applied independently of the metamodel component, so annotation-based id resolution only needs the plainAnnotationBasedEntityIdResolverDefinition. This definition remains functional for existing configurations but requires the resolvedEntityMetamodelto be anAnnotatedEntityMetamodel.