Class ServiceLookup


  • public final class ServiceLookup
    extends Object
    Provides a means of looking up services of a particular type. Allows services to be dynamically defined by adding a file of the service name under the META-INF/services area. The file contains the names of classes that implement the service.
    • Method Detail

      • createServices

        public static <T> List<T> createServices​(Class<T> service)
        Return a list of objects that implement the desired service.
        Type Parameters:
        T - the type of service
        Parameters:
        service - the class of the service
        Returns:
        a list of objects that implement the service