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 Details

  • Method Details

    • addingBundle

      public Object addingBundle(Bundle b, BundleEvent event)
      Description copied from class: BundleTracker
      Default implementation of the BundleTrackerCustomizer.addingBundle method.

      This method is only called when this BundleTracker has been constructed with a null BundleTrackerCustomizer argument.

      This implementation simply returns the specified Bundle.

      This method can be overridden in a subclass to customize the object to be tracked for the bundle being added.

      Specified by:
      addingBundle in interface BundleTrackerCustomizer
      Overrides:
      addingBundle in class BundleTracker
      Parameters:
      b - The Bundle being added to this BundleTracker object.
      event - The bundle event which caused this customizer method to be called or null if there is no bundle event associated with the call to this method.
      Returns:
      The specified bundle.
      See Also:
    • modifiedBundle

      public void modifiedBundle(Bundle b, BundleEvent event, Object object)
      Description copied from class: BundleTracker
      Default implementation of the BundleTrackerCustomizer.modifiedBundle method.

      This method is only called when this BundleTracker has been constructed with a null BundleTrackerCustomizer argument.

      This implementation does nothing.

      Specified by:
      modifiedBundle in interface BundleTrackerCustomizer
      Overrides:
      modifiedBundle in class BundleTracker
      Parameters:
      b - The Bundle whose state has been modified.
      event - The bundle event which caused this customizer method to be called or null if there is no bundle event associated with the call to this method.
      object - The customized object for the specified Bundle.
      See Also:
    • removedBundle

      public void removedBundle(Bundle b, BundleEvent event, Object object)
      Description copied from class: BundleTracker
      Default implementation of the BundleTrackerCustomizer.removedBundle method.

      This method is only called when this BundleTracker has been constructed with a null BundleTrackerCustomizer argument.

      This implementation does nothing.

      Specified by:
      removedBundle in interface BundleTrackerCustomizer
      Overrides:
      removedBundle in class BundleTracker
      Parameters:
      b - The Bundle being removed.
      event - The bundle event which caused this customizer method to be called or null if there is no bundle event associated with the call to this method.
      object - The customized object for the specified bundle.
      See Also: