Class 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.
    • Method Detail

      • addingBundle

        public java.lang.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:
        BundleTrackerCustomizer.addingBundle(Bundle, BundleEvent)
      • modifiedBundle

        public void modifiedBundle​(Bundle b,
                                   BundleEvent event,
                                   java.lang.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:
        BundleTrackerCustomizer.modifiedBundle(Bundle, BundleEvent, Object)
      • removedBundle

        public void removedBundle​(Bundle b,
                                  BundleEvent event,
                                  java.lang.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:
        BundleTrackerCustomizer.removedBundle(Bundle, BundleEvent, Object)