Class OsgiPersistenceProviderService

  • All Implemented Interfaces:
    org.osgi.framework.ServiceFactory

    public class OsgiPersistenceProviderService
    extends java.lang.Object
    implements org.osgi.framework.ServiceFactory
    See the description on OsgiSessionFactoryService. This class is similar, providing an PersistenceProvider as an OSGi Service.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getService​(org.osgi.framework.Bundle requestingBundle, org.osgi.framework.ServiceRegistration registration)  
      void ungetService​(org.osgi.framework.Bundle requestingBundle, org.osgi.framework.ServiceRegistration registration, java.lang.Object service)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OsgiPersistenceProviderService

        public OsgiPersistenceProviderService​(OsgiJtaPlatform osgiJtaPlatform,
                                              OsgiServiceUtil osgiServiceUtil)
        Constructs a OsgiPersistenceProviderService
        Parameters:
        osgiJtaPlatform - The OSGi-specific JtaPlatform created in HibernateBundleActivator
    • Method Detail

      • getService

        public java.lang.Object getService​(org.osgi.framework.Bundle requestingBundle,
                                           org.osgi.framework.ServiceRegistration registration)
        Specified by:
        getService in interface org.osgi.framework.ServiceFactory
      • ungetService

        public void ungetService​(org.osgi.framework.Bundle requestingBundle,
                                 org.osgi.framework.ServiceRegistration registration,
                                 java.lang.Object service)
        Specified by:
        ungetService in interface org.osgi.framework.ServiceFactory