public final class RecursiveBundleTracker
extends java.lang.Object
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 and Description |
---|
RecursiveBundleTracker(BundleContext context,
int stateMask,
BundleTrackerCustomizer customizer)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Stop the tracking of bundles
|
void |
open()
Start tracking bundles that match the bit mask provided at creation time.
|
public RecursiveBundleTracker(BundleContext context, int stateMask, BundleTrackerCustomizer customizer)
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.INSTALLED | Bundle.RESOLVED | Bundle.STARTING | Bundle.ACTIVE | Bundle.STOPPING
as a minimum.java.lang.IllegalArgumentException
- - If the provided bit mask does not contain required
flagspublic void open()
BundleTracker.open()
public void close()
BundleTracker.close()
Copyright © 2010 - 2020 Adobe. All Rights Reserved