Interface CorrelationDataProviderRegistry
- All Known Implementing Classes:
DefaultCorrelationDataProviderRegistry
A registry of
CorrelationDataProviders, acting as a collection of
registered
CorrelationDataProvider components.
Provides operations to register CorrelationDataProviders one by one. Registered providers can be retrieved
through correlationDataProviders(Configuration).
These operations are expected to be invoked within a DecoratorDefinition. As
such, any registered correlation data providers are only applied when the infrastructure component
requiring them is constructed. When, for example, a
CorrelationDataInterceptor is constructed, this registry is invoked
to retrieve its correlation data providers. Correlation data providers that are registered once the
CorrelationDataInterceptor has already been constructed are not taken into account.
- Since:
- 5.0.0
- Author:
- Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list ofCorrelationDataProvidersregistered in this registry.registerProvider(ComponentBuilder<CorrelationDataProvider> providerBuilder) Registers the givenproviderBuilderconstructing aCorrelationDataProviderfor all handling infrastructure components.
-
Method Details
-
registerProvider
@Nonnull CorrelationDataProviderRegistry registerProvider(@Nonnull ComponentBuilder<CorrelationDataProvider> providerBuilder) Registers the givenproviderBuilderconstructing aCorrelationDataProviderfor all handling infrastructure components.- Parameters:
providerBuilder- TheCorrelationDataProviderbuilder to register.- Returns:
- This
InterceptorRegistry, for fluent interfacing.
-
correlationDataProviders
Returns the list ofCorrelationDataProvidersregistered in this registry.- Parameters:
config- The configuration to build allCorrelationDataProviderswith.- Returns:
- The list of
CorrelationDataProviders.
-