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.
- Author:
 
  - tware
 
 
 
| 
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 | 
 
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()
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