EclipseLink 1.1.4, build 'v20100812-r7860' API Reference

javax.persistence.osgi
Class Activator

java.lang.Object
  extended by javax.persistence.osgi.Activator
All Implemented Interfaces:
Persistence.ProviderResolver

public class Activator
extends java.lang.Object
implements Persistence.ProviderResolver

Uses OSGi services to discover JPA persistence providers Also acts as a resolver class (called by the Persistence class when resolving providers).


Field Summary
static java.lang.String PERSISTENCE_PROVIDER
           
 
Constructor Summary
Activator()
           
 
Method Summary
 java.util.Collection<PersistenceProvider> findAllProviders()
           
 void start(BundleContext context)
           
 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
Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(BundleContext context)
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop(BundleContext context)
          throws java.lang.Exception
Throws:
java.lang.Exception

findAllProviders

public java.util.Collection<PersistenceProvider> findAllProviders()
                                                           throws java.io.IOException
Specified by:
findAllProviders in interface Persistence.ProviderResolver
Throws:
java.io.IOException

EclipseLink 1.1.4, build 'v20100812-r7860' API Reference