Package org.axonframework.config
Class ConfigurationScopeAwareProvider
java.lang.Object
org.axonframework.config.ConfigurationScopeAwareProvider
- All Implemented Interfaces:
ScopeAwareProvider
Implementation of the
ScopeAwareProvider which will retrieve a List of ScopeAware components
in a lazy manner. It does this by pulling these components from the provided Configuration as soon as
provideScopeAwareStream(ScopeDescriptor) is called.- Since:
- 3.3
- Author:
- Steven van Beelen, Rob van der Linden Vooren
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationScopeAwareProvider(Configuration configuration) Instantiate a lazyScopeAwareProviderwith the givenconfigurationparameter. -
Method Summary
Modifier and TypeMethodDescriptionprovideScopeAwareStream(ScopeDescriptor scopeDescriptor) Retrieve aStreamofScopeAwarecomponents, by performing a check whether that component is able to handle aScopedescribed by aScopeDescriptor.
-
Constructor Details
-
ConfigurationScopeAwareProvider
Instantiate a lazyScopeAwareProviderwith the givenconfigurationparameter.- Parameters:
configuration- aConfigurationused to retrieveScopeAwarecomponents from- Throws:
IllegalArgumentException- whenconfigurationisnull
-
-
Method Details
-
provideScopeAwareStream
Description copied from interface:ScopeAwareProviderRetrieve aStreamofScopeAwarecomponents, by performing a check whether that component is able to handle aScopedescribed by aScopeDescriptor.- Specified by:
provideScopeAwareStreamin interfaceScopeAwareProvider- Parameters:
scopeDescriptor- aScopeDescriptordescribing theScopea componentScopeAwareshould be able to handle- Returns:
- a
StreamofScopeAwarecomponents
-