Interface EntityIdResolver<ID>

Type Parameters:
ID - The type of the identifier.
All Known Implementing Classes:
AnnotatedEntityIdResolver, AnnotationBasedEntityIdResolver, PropertyBasedEntityIdResolver
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface EntityIdResolver<ID>
Resolver for the id of an entity. The id is then used to load an entity from the StateManager.

Before version 5.0.0, this interface was known as org.axonframework.modelling.command.CommandTargetResolver. This interface was changed to be able to resolve any type of entity id, not just Strings, and to have the ProcessingContext available for resolving the id.

Since:
5.0.0
Author:
Allard Buijze, Mitchell Herrijgers
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(Message message, ProcessingContext context)
    Resolve the id of the entity from the given message and context.
  • Method Details