org.apache.aries.util.tracker
Class MultiBundleTracker
java.lang.Object
org.apache.aries.util.tracker.AbstractBundleTrackerCustomizer
org.apache.aries.util.tracker.MultiBundleTracker
- All Implemented Interfaces:
- org.osgi.util.tracker.BundleTrackerCustomizer
public abstract class MultiBundleTracker
- extends AbstractBundleTrackerCustomizer
This class supports the tracking of composite bundles. It allows clients to ignore any
events related to framework bundles, as it will automatically handle these events. In
order to use this class clients must create a subclass and implement the methods of the
BundleTrackerCustomizer interface. In spite of this, instances of this class
MUST NOT be passed as a parameter to any BundleTracker.
|
Constructor Summary |
MultiBundleTracker(org.osgi.framework.BundleContext context,
int stateMask)
Constructor |
|
Method Summary |
void |
close()
Stop the tracking of bundles |
void |
open()
Start tracking bundles that match the bit mask provided at creation time. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.osgi.util.tracker.BundleTrackerCustomizer |
addingBundle, modifiedBundle, removedBundle |
MultiBundleTracker
public MultiBundleTracker(org.osgi.framework.BundleContext context,
int stateMask)
- Constructor
- Parameters:
context - - The BundleContext against which the tracking is done.stateMask - - The bit mask of the ORing of the bundle states to be tracked. The
mask must contain the flags Bundle.STARTING | Bundle.ACTIVE | Bundle.STOPPING
as a minimum.
- Throws:
IllegalArgumentException - - If the provided bit mask does not contain required
flags
open
public void open()
- Start tracking bundles that match the bit mask provided at creation time.
- See Also:
BundleTracker.open()
close
public void close()
- Stop the tracking of bundles
- See Also:
BundleTracker.close()
Copyright © 2009-2010 The Apache Software Foundation. All Rights Reserved.