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 -
Field Summary
Fields inherited from class org.springframework.modulith.events.support.BrokerRouting
target -
Method Summary
Methods inherited from class org.springframework.modulith.events.support.BrokerRouting
of
-
Method Details
-
getTarget
Description copied from class:BrokerRoutingReturns the actual routing target.- Overrides:
getTargetin classBrokerRouting- Returns:
- will never be null.
-
getTarget
Description copied from class:BrokerRoutingReturns the actual routing target for the given event.- Overrides:
getTargetin classBrokerRouting- Parameters:
event- must not be null.- Returns:
- will never be null.
-
getKey
Description copied from class:BrokerRoutingResolves the routing key against the given event. In case the originalRoutingTargetcontained an expression, the event will be used as root object to evaluate that expression.- Overrides:
getKeyin classBrokerRouting- Parameters:
event- must not be null.- Returns:
- can be null.
-