Interface HandlerInterceptorRegistry

All Superinterfaces:
DescribableComponent
All Known Implementing Classes:
DefaultHandlerInterceptorRegistry

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

Provides operations to register generic Message, CommandMessage-specific, EventMessage-specific, or QueryMessage-specific MessageHandlerInterceptors. Registered type specific MessageHandlerInterceptors can be retrieved through commandInterceptors(Configuration), eventInterceptors(Configuration), and queryInterceptors(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 account.

Since:
5.0.0
Author:
Steven van Beelen