org.eclipse.persistence.jpa.osgi
Class Activator
java.lang.Object
org.eclipse.persistence.jpa.osgi.Activator
public class Activator
- extends java.lang.Object
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
Field Summary |
protected static BundleContext |
context
Context is stored on this activator by its subclass for use
in weaving. |
Method Summary |
static BundleContext |
getContext()
|
void |
start(BundleContext context)
On start, we do two things
We register a listener for bundles and we start our JPA server |
void |
stop(BundleContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected static BundleContext context
- Context is stored on this activator by its subclass for use
in weaving.
Activator
public Activator()
getContext
public static BundleContext getContext()
start
public void start(BundleContext context)
throws java.lang.Exception
- On start, we do two things
We register a listener for bundles and we start our JPA server
- Throws:
java.lang.Exception
stop
public void stop(BundleContext context)
throws java.lang.Exception
- Throws:
java.lang.Exception