Deprecated, for removal: This API element is subject to removal in a future version.
Helidon inject is deprecated and will be replaced in a future version
Instances of these provide lists and maps of
ServiceProviders.-
Method Summary
Modifier and TypeMethodDescriptionMap<String, ? extends ServiceProvider<?>> managedServiceProviders(ServiceInfoCriteria criteria) Deprecated, for removal: This API element is subject to removal in a future version.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(ServiceInfoCriteria criteria, boolean wantThis, boolean thisAlreadyMatches) Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of all matching service providers, potentially including itself in the result.
-
Method Details
-
serviceProviders
List<? extends ServiceProvider<?>> serviceProviders(ServiceInfoCriteria criteria, boolean wantThis, boolean thisAlreadyMatches) Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.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
-