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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<E,ID> EntityIdResolver <ID> createIdResolver(Class<E> entityType, Class<ID> idType, EntityMetamodel<E> entityMetamodel, Configuration configuration) Creates anEntityIdResolverfor the given entity type and identifier type.
-
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: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
-