EclipseLink 1.2.0, build 'v20091016-r5565' API Reference

org.eclipse.persistence.jpa.osgi
Class Activator

java.lang.Object
  extended by org.eclipse.persistence.jpa.osgi.Activator

public class Activator
extends java.lang.Object

Activator for JPA OSGi service.

Author:
tware

Field Summary
static java.lang.String ECLIPSELINK_OSGI_PROVIDER
           
static java.lang.String PERSISTENCE_PROVIDER
           
 
Constructor Summary
Activator()
           
 
Method Summary
 void bundleChanged(BundleEvent event)
          Simply add bundles to our bundle list as they start and remove them as they stop
static BundleContext getContext()
           
 void registerProviderService(java.lang.String initializer)
          Our service provider provides the javax.persistence.spi.PersistenceProvider service.
 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
 

Field Detail

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
Constructor Detail

Activator

public Activator()
Method Detail

bundleChanged

public void bundleChanged(BundleEvent event)
Simply add bundles to our bundle list as they start and remove them as they stop


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

getContext

public static BundleContext getContext()

registerProviderService

public void registerProviderService(java.lang.String initializer)
                             throws java.lang.Exception
Our service provider provides the javax.persistence.spi.PersistenceProvider service. In this method, we register as a provider of that service

Throws:
java.lang.Exception

EclipseLink 1.2.0, build 'v20091016-r5565' API Reference