Interface ServiceProviderProvider


@Deprecated(forRemoval=true, since="4.0.8") public interface ServiceProviderProvider
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 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 match
      wantThis - if this instance matches criteria, do we want to return this instance as part of the result
      thisAlreadyMatches - 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(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 for serviceProviders(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