Package org.apache.aries.util.tracker
Class InternalRecursiveBundleTracker
- java.lang.Object
-
- org.osgi.util.tracker.BundleTracker
-
- org.apache.aries.util.tracker.InternalRecursiveBundleTracker
-
- All Implemented Interfaces:
BundleTrackerCustomizer
public class InternalRecursiveBundleTracker extends BundleTracker
A BundleTracker which will track bundles in the given context, and also bundles in any child contexts. This should be used instead of the normal non-recursive BundleTracker when registering bundle tracker customizers.
-
-
Constructor Summary
Constructors Constructor Description InternalRecursiveBundleTracker(BundleContext context, int stateMask, BundleTrackerCustomizer customizer, boolean nested)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
addingBundle(Bundle b, BundleEvent event)
void
modifiedBundle(Bundle b, BundleEvent event, java.lang.Object object)
void
removedBundle(Bundle b, BundleEvent event, java.lang.Object object)
-
Methods inherited from class org.osgi.util.tracker.BundleTracker
close, getBundles, getObject, getTracked, getTrackingCount, isEmpty, open, remove, size
-
-
-
-
Constructor Detail
-
InternalRecursiveBundleTracker
public InternalRecursiveBundleTracker(BundleContext context, int stateMask, BundleTrackerCustomizer customizer, boolean nested)
-
-
Method Detail
-
addingBundle
public java.lang.Object addingBundle(Bundle b, BundleEvent event)
- Specified by:
addingBundle
in interfaceBundleTrackerCustomizer
- Overrides:
addingBundle
in classBundleTracker
-
modifiedBundle
public void modifiedBundle(Bundle b, BundleEvent event, java.lang.Object object)
- Specified by:
modifiedBundle
in interfaceBundleTrackerCustomizer
- Overrides:
modifiedBundle
in classBundleTracker
-
removedBundle
public void removedBundle(Bundle b, BundleEvent event, java.lang.Object object)
- Specified by:
removedBundle
in interfaceBundleTrackerCustomizer
- Overrides:
removedBundle
in classBundleTracker
-
-