public class OsgiPersistenceProviderService
extends java.lang.Object
implements org.osgi.framework.ServiceFactory
OsgiSessionFactoryService
. This class is similar, providing an
PersistenceProvider as an OSGi Service.Constructor and Description |
---|
OsgiPersistenceProviderService(OsgiJtaPlatform osgiJtaPlatform,
OsgiServiceUtil osgiServiceUtil)
Constructs a OsgiPersistenceProviderService
|
Modifier and Type | Method and 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) |
public OsgiPersistenceProviderService(OsgiJtaPlatform osgiJtaPlatform, OsgiServiceUtil osgiServiceUtil)
osgiJtaPlatform
- The OSGi-specific JtaPlatform created in HibernateBundleActivatorpublic java.lang.Object getService(org.osgi.framework.Bundle requestingBundle, org.osgi.framework.ServiceRegistration registration)
getService
in interface org.osgi.framework.ServiceFactory
public void ungetService(org.osgi.framework.Bundle requestingBundle, org.osgi.framework.ServiceRegistration registration, java.lang.Object service)
ungetService
in interface org.osgi.framework.ServiceFactory
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.