Package org.axonframework.messaging
Class LegacyScopeAwareProviderConfigurationEnhancer
java.lang.Object
org.axonframework.messaging.LegacyScopeAwareProviderConfigurationEnhancer
- All Implemented Interfaces:
ConfigurationEnhancer
@RegistrationScope("Register one provider at the root; Saga managers built by modules find it through their parent.")
public class LegacyScopeAwareProviderConfigurationEnhancer
extends Object
implements ConfigurationEnhancer
A
ConfigurationEnhancer that registers the configuration's LegacyScopeAwareProvider as its
ScopeAwareProvider component.
The provider is created with the ScopeAwareProviderSettings component, or
ScopeAwareProviderSettings.DEFAULT without one. It becomes ready in the start phase after
Phase.INBOUND_EVENT_CONNECTORS, when the event processors have built every Saga manager, and releases
waiting callers in that shutdown phase. An application that registers a ScopeAwareProvider itself replaces
the provider, and receives no components from the configuration.
The enhancer is registered through the ServiceLoader mechanism.
- Since:
- 5.4.0
- Author:
- Jakob Hatzl
-
Constructor Details
-
LegacyScopeAwareProviderConfigurationEnhancer
public LegacyScopeAwareProviderConfigurationEnhancer()
-
-
Method Details
-
enhance
Description copied from interface:ConfigurationEnhancer- Specified by:
enhancein interfaceConfigurationEnhancer- Parameters:
registry- The registry instance to enhance.
-