org.eclipse.persistence.jpa.osgi
Class Activator
java.lang.Object
org.eclipse.persistence.jpa.osgi.Activator
- All Implemented Interfaces:
- org.osgi.framework.BundleActivator
- Direct Known Subclasses:
- Activator
public class Activator
- extends Object
- implements org.osgi.framework.BundleActivator
Activator for JPA OSGi service.
This activator has two potential sets of behavior
If the org.eclipse.persistence.jpa.osgi fragment is available, it will forward calls to an Activator in that bundle
that makes our OSGi support occur in an EclipseLink-specific way - as we shipped in our 2.0 release.
In the absence of that fragment, this activator will behave in a way specific to the Eclipse Gemini project with
allows EclipseLink to function as required by the OSGi JPA specification
- Author:
- tware
Method Summary |
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)
|
Activator
public Activator()
getContext
public static org.osgi.framework.BundleContext getContext()
start
public void start(org.osgi.framework.BundleContext context)
throws 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:
Exception
stop
public void stop(org.osgi.framework.BundleContext context)
throws Exception
- Specified by:
stop
in interface org.osgi.framework.BundleActivator
- Throws:
Exception