Interface ReactorDispatchInterceptorFactory<M extends Message>
- Type Parameters:
M- the type ofMessagethe resultingReactorMessageDispatchInterceptorwill intercept
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for building a
ReactorMessageDispatchInterceptor for a specific component type and
component name.
This interface allows ReactorMessageDispatchInterceptors to be constructed with knowledge of the component
they will intercept, allowing for fine-grained control on how or when to construct an interceptor.
- Since:
- 5.1.0
- Author:
- Theo Emanuelsson
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable ReactorMessageDispatchInterceptor<? super M> build(Configuration config, Class<?> componentType, @Nullable String componentName) Builds aReactorMessageDispatchInterceptorfor the specified component.
-
Method Details
-
build
@Nullable ReactorMessageDispatchInterceptor<? super M> build(Configuration config, Class<?> componentType, @Nullable String componentName) Builds aReactorMessageDispatchInterceptorfor the specified component.- Parameters:
config- theConfigurationfrom which other components can be retrieved during constructioncomponentType- the type of the component to build a dispatch interceptor forcomponentName- the name of the component to build a dispatch interceptor for- Returns:
- a
ReactorMessageDispatchInterceptorinstance configured for the specified component ornullwhen no interceptor is required for the givencomponentTypeandcomponentNamecombination
-