Interface DispatchInterceptorRegistry

All Superinterfaces:
DescribableComponent
All Known Implementing Classes:
DefaultDispatchInterceptorRegistry

@Internal public interface DispatchInterceptorRegistry extends DescribableComponent
A registry of MessageDispatchInterceptors, acting as a collection of registered MessageDispatchInterceptors components.

Provides operations to register generic Message, CommandMessage-specific, EventMessage-specific, QueryMessage-specific, or SubscriptionQueryUpdateMessage-specific MessageDispatchInterceptor. Registered type specific MessageDispatchInterceptor can be retrieved through commandInterceptors(Configuration), eventInterceptors(Configuration), queryInterceptors(Configuration), and subscriptionQueryUpdateInterceptors(Configuration).

These operations are expected to be invoked within a DecoratorDefinition. As such, any registered interceptors are only applied when the infrastructure component requiring them is constructed. When, for example, an InterceptingCommandBus is constructed, this registry is invoked to retrieve interceptors. Interceptors that are registered once the InterceptingCommandBus has already been constructed are not taken into ac

Since:
5.0.0
Author:
Steven van Beelen