Class DefaultCorrelationDataProviderRegistry
java.lang.Object
org.axonframework.messaging.core.correlation.DefaultCorrelationDataProviderRegistry
- All Implemented Interfaces:
CorrelationDataProviderRegistry
@Internal
public class DefaultCorrelationDataProviderRegistry
extends Object
implements CorrelationDataProviderRegistry
Default implementation of the
CorrelationDataProviderRegistry, maintaining a list of
CorrelationDataProviders.
This implementation ensures given correlation data providers factory methods are only invoked once.
- Since:
- 5.0.0
- Author:
- Steven van Beelen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list ofCorrelationDataProvidersregistered in this registry.registerProvider(ComponentBuilder<CorrelationDataProvider> providerBuilder) Registers the givenproviderBuilderconstructing aCorrelationDataProviderfor all handling infrastructure components.
-
Constructor Details
-
DefaultCorrelationDataProviderRegistry
public DefaultCorrelationDataProviderRegistry()
-
-
Method Details
-
registerProvider
@Nonnull public CorrelationDataProviderRegistry registerProvider(@Nonnull ComponentBuilder<CorrelationDataProvider> providerBuilder) Description copied from interface:CorrelationDataProviderRegistryRegisters the givenproviderBuilderconstructing aCorrelationDataProviderfor all handling infrastructure components.- Specified by:
registerProviderin interfaceCorrelationDataProviderRegistry- Parameters:
providerBuilder- TheCorrelationDataProviderbuilder to register.- Returns:
- This
InterceptorRegistry, for fluent interfacing.
-
correlationDataProviders
@Nonnull public List<CorrelationDataProvider> correlationDataProviders(@Nonnull Configuration config) Description copied from interface:CorrelationDataProviderRegistryReturns the list ofCorrelationDataProvidersregistered in this registry.- Specified by:
correlationDataProvidersin interfaceCorrelationDataProviderRegistry- Parameters:
config- The configuration to build allCorrelationDataProviderswith.- Returns:
- The list of
CorrelationDataProviders.
-