- All Known Implementing Classes:
ConfigDrivenServiceProviderBase
public interface ServiceProviderProvider
Instances of these provide lists and maps of
ServiceProvider
s.-
Method Summary
Modifier and TypeMethodDescriptionMap
<String, ? extends ServiceProvider<?>> managedServiceProviders
(io.helidon.inject.api.ServiceInfoCriteria criteria) This method will only apply to the managed/slave instances being provided, not to itself as in the case forserviceProviders(ServiceInfoCriteria, boolean, boolean)
.List
<? extends ServiceProvider<?>> serviceProviders
(io.helidon.inject.api.ServiceInfoCriteria criteria, boolean wantThis, boolean thisAlreadyMatches) Returns a list of all matching service providers, potentially including itself in the result.
-
Method Details
-
serviceProviders
List<? extends ServiceProvider<?>> serviceProviders(io.helidon.inject.api.ServiceInfoCriteria criteria, boolean wantThis, boolean thisAlreadyMatches) Returns a list of all matching service providers, potentially including itself in the result.- Parameters:
criteria
- the injection point criteria that must matchwantThis
- if this instance matches criteria, do we want to return this instance as part of the resultthisAlreadyMatches
- an optimization that signals to the implementation that this instance has already matched using the standard service info matching checks- Returns:
- the list of service providers matching
-
managedServiceProviders
Map<String,? extends ServiceProvider<?>> managedServiceProviders(io.helidon.inject.api.ServiceInfoCriteria criteria) This method will only apply to the managed/slave instances being provided, not to itself as in the case forserviceProviders(ServiceInfoCriteria, boolean, boolean)
.- Parameters:
criteria
- the injection point criteria that must match- Returns:
- the map of managed service providers matching the criteria, identified by its key/context
-