public class Activator extends Object implements org.osgi.framework.BundleActivator, 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
|
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 String MANIFEST_PU_LABEL
public static final String PERSISTENCE_PROVIDER
public static final 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 Exception
start
in interface org.osgi.framework.BundleActivator
Exception
EclipseLink 2.3.2, "build v20111125-r10461" API Reference