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.BundleListener
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
java.lang.Exception
EclipseLink 2.3.2, "build v20111125-r10461" API Reference