Package org.hibernate.osgi
Class OsgiPersistenceProviderService
- java.lang.Object
-
- org.hibernate.osgi.OsgiPersistenceProviderService
-
- All Implemented Interfaces:
org.osgi.framework.ServiceFactory
public class OsgiPersistenceProviderService extends java.lang.Object implements org.osgi.framework.ServiceFactorySee the description onOsgiSessionFactoryService. This class is similar, providing an PersistenceProvider as an OSGi Service.
-
-
Constructor Summary
Constructors Constructor Description OsgiPersistenceProviderService(OsgiJtaPlatform osgiJtaPlatform, OsgiServiceUtil osgiServiceUtil)Constructs a OsgiPersistenceProviderService
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetService(org.osgi.framework.Bundle requestingBundle, org.osgi.framework.ServiceRegistration registration)voidungetService(org.osgi.framework.Bundle requestingBundle, org.osgi.framework.ServiceRegistration registration, java.lang.Object 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 java.lang.Object getService(org.osgi.framework.Bundle requestingBundle, org.osgi.framework.ServiceRegistration registration)- Specified by:
getServicein interfaceorg.osgi.framework.ServiceFactory
-
ungetService
public void ungetService(org.osgi.framework.Bundle requestingBundle, org.osgi.framework.ServiceRegistration registration, java.lang.Object service)- Specified by:
ungetServicein interfaceorg.osgi.framework.ServiceFactory
-
-