Interface ServiceProviderProvider

All Known Implementing Classes:
ConfigDrivenServiceProviderBase

public interface ServiceProviderProvider
Instances of these provide lists and maps of ServiceProviders.
  • 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 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(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 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