Package org.springframework.modulith.events.support
@NullMarked
package org.springframework.modulith.events.support
Spring Framework extensions to integrate the event publication registry.
-
ClassDescriptionBase class for
Advisors taking part in the completion of event publications.ABrokerRoutingsupportsRoutingTargetinstances that contain values matching the format$target::$keyfor which both the target and key can be a SpEL expression.ABrokerRoutingthat evaluates aRoutingTarget's key as SpEL expression.Different modes of event completion.AnAdvisorto decorateTransactionalEventListenerannotated methods to mark the previously registered event publications as completed on successful method execution.MethodInterceptorto trigger the completion of an event publication after a transaction event listener method has been completed successfully.ABeanPostProcessorthat adds an advisor completing event publications right before commit to the advisor chain ofAdvisedbeans, directly after theTransactionInterceptor.Defines when the completion of an event publication takes place relative to the transactional event listener.SPI to capture the strategy to externalize the given event payload using a particular implementation technology, usually a message broker.AnApplicationModuleListenerthat's only applied if the event to be externalized is supposed to be externalized in the first place.Fundamental support for event externalization.AnAdvisorto be registered after the transaction interceptor to complete event publications right before the listener's transaction commits.MethodInterceptorregistered after the transaction interceptor in the advisor chain of a transactional event listener.Cache for thePublicationTargetIdentifierof transactional event listener methods.AnOutboxEventExternalizerthat transports events from the outbox to an external target.A factory to createOutboxEventExternalizerforEventExternalizationTransports.AnApplicationEventMulticasterto registerEventPublications in anEventPublicationRegistryso that potentially failing transactional event listeners can get re-invoked upon application restart or via a schedule.AnEventExternalizerSupportdelegating to aEventExternalizationTransportfor the actual externalization.