Class BrokerRouting.SpelBrokerRouting
java.lang.Object
org.springframework.modulith.events.support.BrokerRouting
org.springframework.modulith.events.support.BrokerRouting.SpelBrokerRouting
- Enclosing class:
- BrokerRouting
A
BrokerRouting
that evaluates a RoutingTarget
's key as SpEL expression.- Since:
- 1.1
- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.modulith.events.support.BrokerRouting
BrokerRouting.SpelBrokerRouting
-
Method Summary
Methods inherited from class org.springframework.modulith.events.support.BrokerRouting
getTarget, of
-
Method Details
-
getKey
Description copied from class:BrokerRouting
Resolves the routing key against the given event. In case the originalRoutingTarget
contained an expression, the event will be used as root object to evaluate that expression.- Overrides:
getKey
in classBrokerRouting
- Parameters:
event
- must not be null.- Returns:
- can be null.
-