Interface ServiceProvider

    • Method Detail

      • provide

        <T> Optional<T> provide​(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