Interface ServiceProvider

    • Method Detail

      • provide

        <T> java.util.Optional<T> provide​(java.lang.Class<T> serviceClass)
        Provides the service represented by the supplied Class.
        Type Parameters:
        T - The type of service
        Parameters:
        serviceClass - The class
        Returns:
        The service, if one exists
      • registration

        <T> java.util.Optional<ServiceRegistration<T>> registration​(java.lang.Class<T> serviceClass)
        Provides the ServiceRegistration for the supplied Class.
        Type Parameters:
        T - The type of service
        Parameters:
        serviceClass - The class
        Returns:
        The registration, if one exists