Interface ServiceCatalog


public interface ServiceCatalog
The ServiceCatalog provides access to the Service instances and their consumption API.
  • Method Details

    • getService

      Service getService(String name)
      Returns the Service with the specified name
      Parameters:
      name - the name of the Service
      Returns:
      the Service
    • getService

      <S extends Service> S getService(Class<S> serviceClass, String name)
      Returns the Service with the given type and name
      Type Parameters:
      S - the type of the Service
      Parameters:
      serviceClass - the class of the type S
      name - the name of the Service
      Returns:
      the Service of type S
    • getServices

      <S extends Service> Stream<S> getServices(Class<S> serviceClass)
      Returns all Service instances of a given type
      Type Parameters:
      S - the type of the Service
      Parameters:
      serviceClass - the class of the type S
      Returns:
      a stream of the Service instances of type S
    • getServices

      Stream<Service> getServices()
      Returns all Service instances known to the ServiceCatalog
      Returns:
      a stream of all Service instances