|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.spec.ee.jpa.PersistenceProviderActivator
public class PersistenceProviderActivator
OSGi activator for
| Constructor Summary | |
|---|---|
PersistenceProviderActivator()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
clearCachedProviders()
Clear cache of providers. |
List<PersistenceProvider> |
getPersistenceProviders()
Returns a list of the PersistenceProvider implementations available in the runtime environment. |
void |
serviceChanged(org.osgi.framework.ServiceEvent event)
Checks if there are persistence providers that are being registered/unregistered. |
void |
start(org.osgi.framework.BundleContext context)
Called when this bundle is started so the Framework can perform the bundle-specific activities necessary to start this bundle. |
void |
stop(org.osgi.framework.BundleContext context)
Called when this bundle is stopped so the Framework can perform the bundle-specific activities necessary to stop the bundle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistenceProviderActivator()
| Method Detail |
|---|
public void start(org.osgi.framework.BundleContext context)
throws Exception
This method must complete and return to its caller in a timely manner.
start in interface org.osgi.framework.BundleActivatorcontext - The execution context of the bundle being started.
Exception - If this method throws an exception, this bundle is marked as stopped and the Framework will remove this
bundle's listeners, unregister all services registered by this bundle, and release all services used by this bundle.
public void stop(org.osgi.framework.BundleContext context)
throws Exception
BundleActivator.start method started. There
should be no active threads that were started by this bundle when this bundle returns. A stopped bundle must not call any
Framework objects.
This method must complete and return to its caller in a timely manner.
stop in interface org.osgi.framework.BundleActivatorcontext - The execution context of the bundle being stopped.
Exception - If this method throws an exception, the bundle is still marked as stopped, and the Framework will remove
the bundle's listeners, unregister all services registered by the bundle, and release all services used by the bundle.public void clearCachedProviders()
clearCachedProviders in interface PersistenceProviderResolverpublic List<PersistenceProvider> getPersistenceProviders()
getPersistenceProviders in interface PersistenceProviderResolverpublic void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged in interface org.osgi.framework.ServiceListenerevent - The ServiceEvent object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||