public class Activator extends Activator implements org.osgi.framework.SynchronousBundleListener
| Modifier and Type | Field and Description |
|---|---|
static String |
ECLIPSELINK_OSGI_PROVIDER |
static String |
MANIFEST_PU_LABEL |
static String |
PERSISTENCE_PROVIDER |
| Constructor and Description |
|---|
Activator() |
| Modifier and Type | Method and Description |
|---|---|
void |
bundleChanged(org.osgi.framework.BundleEvent event)
Simply add bundles to our bundle list as they start and remove them as they stop
|
void |
registerProviderService(String initializer)
Our service provider provides the javax.persistence.spi.PersistenceProvider service.
|
void |
start(org.osgi.framework.BundleContext context)
On start, we do two things
We register a listener for bundles and we start our JPA server
|
void |
stop(org.osgi.framework.BundleContext context) |
getContextpublic static final String MANIFEST_PU_LABEL
public static final String PERSISTENCE_PROVIDER
public static final String ECLIPSELINK_OSGI_PROVIDER
public void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListenerpublic void start(org.osgi.framework.BundleContext context)
throws Exception
public void stop(org.osgi.framework.BundleContext context)
throws Exception