public class Activator
extends java.lang.Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.SynchronousBundleListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ECLIPSELINK_OSGI_PROVIDER |
static java.lang.String |
MANIFEST_PU_LABEL |
static java.lang.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
|
static org.osgi.framework.BundleContext |
getContext() |
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) |
public static final java.lang.String MANIFEST_PU_LABEL
public static final java.lang.String PERSISTENCE_PROVIDER
public static final java.lang.String ECLIPSELINK_OSGI_PROVIDER
public static org.osgi.framework.BundleContext getContext()
public void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListenerpublic void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
start in interface org.osgi.framework.BundleActivatorjava.lang.Exceptionpublic void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
stop in interface org.osgi.framework.BundleActivatorjava.lang.ExceptionEclipseLink 2.4.2, "build v20130514-5956486" API Reference