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:BrokerRouting
Returns the actual routing target.- Overrides:
getTarget
in classBrokerRouting
- Returns:
- will never be null.
-
getTarget
Description copied from class:BrokerRouting
Returns the actual routing target for the given event.- Overrides:
getTarget
in classBrokerRouting
- Parameters:
event
- must not be null.- Returns:
- will never be null.
-
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.
-