Class ExtraJavaServicesClassLoaderService

  • All Implemented Interfaces:, ClassLoaderService, Service, Stoppable

    public class ExtraJavaServicesClassLoaderService
    extends org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl
    See Also:
    Serialized Form
    • Method Detail

      • loadJavaServices

        public <S> java.util.Collection<S> loadJavaServices​(java.lang.Class<S> serviceContract)
        Description copied from interface: ClassLoaderService
        Discovers and instantiates implementations of the named service contract.

        NOTE : the terms service here is used differently than Service. Instead here we are talking about services as defined by ServiceLoader.

        Specified by:
        loadJavaServices in interface ClassLoaderService
        loadJavaServices in class org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl
        Type Parameters:
        S - The type of the service contract
        serviceContract - The java type defining the service contract
        The ordered set of discovered services.