Uses of Class
org.springframework.modulith.events.RoutingTarget
Package
Description
API of the event publication registry abstraction.
Spring Framework extensions to integrate the event publication registry.
-
Uses of RoutingTarget in org.springframework.modulith.events
Modifier and TypeMethodDescriptionReturns a newRoutingTarget
with the already configured target and the given key.DefaultEventExternalizationConfiguration.determineTarget
(Object event) EventExternalizationConfiguration.determineTarget
(Object event) Determines theRoutingTarget
for the given event based on the current configuration.(package private) RoutingTarget
RoutingTarget.ParsedRoutingTarget.toRoutingTarget()
(package private) RoutingTarget
RoutingTarget.verify()
(package private) RoutingTarget
RoutingTarget.ParsedRoutingTarget.withFallback
(RoutingTarget fallback) (package private) RoutingTarget
Creates a newRoutingTarget
with the same target but the given routing key.RoutingTarget.RoutingTargetBuilder.withoutKey()
Returns a newRoutingTarget
without a key.(package private) RoutingTarget
RoutingTarget.withTarget
(String target) Modifier and TypeMethodDescriptionstatic Function<Object,
Optional<RoutingTarget>> EventExternalizationConfiguration.byApplicationLocalName
(Collection<String> packages) Creates a new routing that uses the application-local type name as targetstatic Function<Object,
RoutingTarget> EventExternalizationConfiguration.byFullyQualifiedTypeName()
Returns aFunction
that looks up the target from the fully-qualified type name of the event's type.Modifier and TypeMethodDescription(package private) RoutingTarget
RoutingTarget.ParsedRoutingTarget.withFallback
(RoutingTarget fallback) Modifier and TypeMethodDescriptionEventExternalizationConfiguration.Router.route
(Class<T> type, Function<T, RoutingTarget> router) Registers a router function for the events of the given specific type.EventExternalizationConfiguration.Router.routeAll
(Function<Object, RoutingTarget> router) Routes all events based on the given function.EventExternalizationConfiguration.Router.routeAllByType
(Function<Class<?>, RoutingTarget> router) Routes all messages based on the event type only.EventExternalizationConfiguration.Router.routeOptional
(Function<Object, Optional<RoutingTarget>> router) Routes by extracting anOptional
route from the event.EventExternalizationConfiguration.Router.routeOptionalByType
(Function<Class<?>, Optional<RoutingTarget>> router) Routes by extracting anOptional
route from the event type.EventExternalizationConfiguration.Selector.selectAndRoute
(Class<T> annotationType, BiFunction<Object, T, RoutingTarget> router) Selects events by the presence of an annotation of the given type and routes based on the given routerBiFunction
that also gets the event type to build up a completeRoutingTarget
. -
Uses of RoutingTarget in org.springframework.modulith.events.support
Modifier and TypeMethodDescriptionprotected void
DelegatingEventExternalizer.externalize
(Object payload, RoutingTarget target) protected abstract void
EventExternalizationSupport.externalize
(Object payload, RoutingTarget target) Publish the given payload to the givenRoutingTarget
.static BrokerRouting
BrokerRouting.of
(RoutingTarget target, EvaluationContext context) ModifierConstructorDescriptionDelegatingEventExternalizer
(EventExternalizationConfiguration configuration, BiConsumer<RoutingTarget, Object> delegate) Creates a newDelegatingEventExternalizer
for the givenEventExternalizationConfiguration
andBiConsumer
implementing the actual externalization.