org.eclipse.persistence.jpa.osgi
Class Activator

java.lang.Object
  extended by 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

Constructor Summary
Activator()
           
 
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activator

public Activator()
Method Detail

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