Class OsgiPersistenceProviderService

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

    public class OsgiPersistenceProviderService
    extends Object
    implements org.osgi.framework.ServiceFactory
    See the description on OsgiSessionFactoryService. This class is similar, providing an PersistenceProvider as an OSGi Service.
    • 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 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,
                                 Object service)
        Specified by:
        ungetService in interface org.osgi.framework.ServiceFactory