Interface ServiceResolver

  • All Known Implementing Classes:

    public interface ServiceResolver
    A resolver of Java services.
    • Method Detail

      • loadJavaServices

        <T> Iterable<T> loadJavaServices​(Class<T> serviceContract)
        Discovers and instantiates implementations of the named service contract.

        NOTE : We are talking about services as defined by ServiceLoader.

        Type Parameters:
        T - The type of the service contract
        serviceContract - The java type defining the service contract
        The ordered set of discovered services.