Class RoutingKeyUtils
java.lang.Object
org.axonframework.modelling.entity.annotation.RoutingKeyUtils
Utility class for retrieving routing keys from entity members and child entities.
- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
-
Method Summary
Modifier and TypeMethodDescriptiongetMessageRoutingKey(AnnotatedElement member) Retrieves the routing key for the given member, which is defined by theEntityMember.routingKey()annotation.
-
Method Details
-
getMessageRoutingKey
Retrieves the routing key for the given member, which is defined by theEntityMember.routingKey()annotation.- Parameters:
member- The member to retrieve the routing key for.- Returns:
- An
Optionalcontaining the routing key if present, otherwise empty.
-