org.eclipse.persistence.jpa.osgi
Class Activator
java.lang.Object
org.eclipse.persistence.jpa.osgi.Activator
- All Implemented Interfaces:
- java.util.EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener
public class Activator
- extends java.lang.Object
- implements org.osgi.framework.BundleActivator, org.osgi.framework.SynchronousBundleListener
Activator for JPA OSGi service.
This Activator provides EclipseLink's OSGi integration. When the Eclipse
Gemini project comes out of incubation that behavior this integration will be
deprecated and users will be encouraged to use OSGi JPA in the way defined by
the OSGi EE specification
- Author:
- tware, ssmith
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MANIFEST_PU_LABEL
public static final java.lang.String MANIFEST_PU_LABEL
- See Also:
- Constant Field Values
PERSISTENCE_PROVIDER
public static final java.lang.String PERSISTENCE_PROVIDER
- See Also:
- Constant Field Values
ECLIPSELINK_OSGI_PROVIDER
public static final java.lang.String ECLIPSELINK_OSGI_PROVIDER
- See Also:
- Constant Field Values
Activator
public Activator()
getContext
public static org.osgi.framework.BundleContext getContext()
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event)
- Simply add bundles to our bundle list as they start and remove them as they stop
- Specified by:
bundleChanged in interface org.osgi.framework.BundleListener
start
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
- On start, we do two things
We register a listener for bundles and we start our JPA server
- Specified by:
start in interface org.osgi.framework.BundleActivator
- Throws:
java.lang.Exception
stop
public void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
- Specified by:
stop in interface org.osgi.framework.BundleActivator
- Throws:
java.lang.Exception
EclipseLink 2.2.1, "build v20110722-r9776" API Reference