public class ConfigurationScopeAwareProvider extends Object implements ScopeAwareProvider
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.Constructor and Description |
---|
ConfigurationScopeAwareProvider(Configuration configuration)
Instantiate a lazy
ScopeAwareProvider with the given configuration parameter. |
Modifier and Type | Method and Description |
---|---|
Stream<ScopeAware> |
provideScopeAwareStream(ScopeDescriptor scopeDescriptor)
Retrieve a
Stream of ScopeAware components, by performing a check whether that component is able
to handle a Scope described by a ScopeDescriptor . |
public ConfigurationScopeAwareProvider(Configuration configuration)
ScopeAwareProvider
with the given configuration
parameter.configuration
- a Configuration
used to retrieve ScopeAware
components fromIllegalArgumentException
- when configuration
is null
public Stream<ScopeAware> provideScopeAwareStream(ScopeDescriptor scopeDescriptor)
ScopeAwareProvider
Stream
of ScopeAware
components, by performing a check whether that component is able
to handle a Scope
described by a ScopeDescriptor
.provideScopeAwareStream
in interface ScopeAwareProvider
scopeDescriptor
- a ScopeDescriptor
describing the Scope
a component ScopeAware
should be able to handleStream
of ScopeAware
componentsCopyright © 2010–2023. All rights reserved.