Class BrokerRouting.SpelBrokerRouting

java.lang.Object
org.springframework.modulith.events.support.BrokerRouting
org.springframework.modulith.events.support.BrokerRouting.SpelBrokerRouting
Enclosing class:
BrokerRouting

static class BrokerRouting.SpelBrokerRouting extends BrokerRouting
A BrokerRouting that evaluates a RoutingTarget's key as SpEL expression.
Since:
1.1
Author:
Oliver Drotbohm
  • Method Details

    • getKey

      @Nullable public String getKey(Object event)
      Description copied from class: BrokerRouting
      Resolves the routing key against the given event. In case the original RoutingTarget contained an expression, the event will be used as root object to evaluate that expression.
      Overrides:
      getKey in class BrokerRouting
      Parameters:
      event - must not be null.
      Returns:
      can be null.