Class OSGiClassLoaderServiceImpl

  • All Implemented Interfaces:
    java.io.Serializable, org.hibernate.boot.registry.classloading.spi.ClassLoaderService, org.hibernate.service.Service, org.hibernate.service.spi.Stoppable

    public class OSGiClassLoaderServiceImpl
    extends org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl
    implements org.hibernate.boot.registry.classloading.spi.ClassLoaderService
    The ClassLoaderService that should be used when running in OSGi; this helps for example to load the Services correctly.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.hibernate.boot.registry.classloading.spi.ClassLoaderService

        org.hibernate.boot.registry.classloading.spi.ClassLoaderService.Work<T extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <S> java.util.LinkedHashSet<S> loadJavaServices​(java.lang.Class<S> serviceContract)  
      void stop()  
      • Methods inherited from class org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl

        classForName, fromConfigSettings, generateProxy, locateResource, locateResources, locateResourceStream, workWithClassLoader
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.hibernate.boot.registry.classloading.spi.ClassLoaderService

        classForName, generateProxy, locateResource, locateResources, locateResourceStream, workWithClassLoader
    • Method Detail

      • loadJavaServices

        public <S> java.util.LinkedHashSet<S> loadJavaServices​(java.lang.Class<S> serviceContract)
        Specified by:
        loadJavaServices in interface org.hibernate.boot.registry.classloading.spi.ClassLoaderService
        Overrides:
        loadJavaServices in class org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl
      • stop

        public void stop()
        Specified by:
        stop in interface org.hibernate.service.spi.Stoppable
        Overrides:
        stop in class org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl