Class OSGiClassLoaderServiceImpl

    • Method Detail

      • loadJavaServices

        public <S> LinkedHashSet<S> loadJavaServices​(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.
      • stop

        public void stop()
        Description copied from interface: Stoppable
        Stop phase notification
        Specified by:
        stop in interface Stoppable
        stop in class org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl