Class RoutingKeyCommandTargetResolverDefinition

java.lang.Object
org.axonframework.modelling.entity.annotation.RoutingKeyCommandTargetResolverDefinition
All Implemented Interfaces:
CommandTargetResolverDefinition

public class RoutingKeyCommandTargetResolverDefinition extends Object implements CommandTargetResolverDefinition
Definition for creating CommandTargetResolver instances based on the routing key definitions.

The routing key of the message is determined by the EntityMember.routingKey() annotation on the declaring member in the parent entity, or the RoutingKey annotation on the child entity's member if absent. The routing key of the child entity is determined by the RoutingKey on a member of the child entity class.

The routing key of the message and of the entity are then matched to determine if a child entity should handle a given message.

Since:
5.0.0
Author:
Mitchell Herrijgers
See Also: