org.apache.aries.jpa.container.impl
Class PersistenceBundleManager
java.lang.Object
org.apache.aries.jpa.container.impl.PersistenceBundleManager
- All Implemented Interfaces:
- org.osgi.framework.BundleActivator, org.osgi.util.tracker.BundleTrackerCustomizer, org.osgi.util.tracker.ServiceTrackerCustomizer
public class PersistenceBundleManager
- extends Object
- implements org.osgi.util.tracker.BundleTrackerCustomizer, org.osgi.util.tracker.ServiceTrackerCustomizer, org.osgi.framework.BundleActivator
This class locates, parses and manages persistence units defined in OSGi bundles.
Method Summary |
Object |
addingBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event)
|
Object |
addingService(org.osgi.framework.ServiceReference ref)
A provider is being added, add it to our Set |
org.osgi.framework.BundleContext |
getCtx()
|
void |
modifiedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object object)
|
void |
modifiedService(org.osgi.framework.ServiceReference reference,
Object service)
|
void |
quiesceBundle(org.osgi.framework.Bundle bundleToQuiesce,
DestroyCallback callback)
|
void |
removedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object object)
|
void |
removedService(org.osgi.framework.ServiceReference ref,
Object o)
A provider is being removed, remove it from the set, and notify all
managers that it has been removed |
void |
start(org.osgi.framework.BundleContext context)
|
void |
stop(org.osgi.framework.BundleContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistenceBundleManager
public PersistenceBundleManager()
addingBundle
public Object addingBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event)
- Specified by:
addingBundle
in interface org.osgi.util.tracker.BundleTrackerCustomizer
addingService
public Object addingService(org.osgi.framework.ServiceReference ref)
- A provider is being added, add it to our Set
- Specified by:
addingService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
- Parameters:
ref
-
removedService
public void removedService(org.osgi.framework.ServiceReference ref,
Object o)
- A provider is being removed, remove it from the set, and notify all
managers that it has been removed
- Specified by:
removedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
- Parameters:
ref
-
modifiedBundle
public void modifiedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object object)
- Specified by:
modifiedBundle
in interface org.osgi.util.tracker.BundleTrackerCustomizer
removedBundle
public void removedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object object)
- Specified by:
removedBundle
in interface org.osgi.util.tracker.BundleTrackerCustomizer
modifiedService
public void modifiedService(org.osgi.framework.ServiceReference reference,
Object service)
- Specified by:
modifiedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
start
public void start(org.osgi.framework.BundleContext context)
throws Exception
- 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
getCtx
public org.osgi.framework.BundleContext getCtx()
quiesceBundle
public void quiesceBundle(org.osgi.framework.Bundle bundleToQuiesce,
DestroyCallback callback)
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.