Class BundleContextProvider.ContextBundleTracker

java.lang.Object
org.osgi.util.tracker.BundleTracker
org.eclipse.jetty.osgi.BundleContextProvider.ContextBundleTracker
All Implemented Interfaces:
org.osgi.util.tracker.BundleTrackerCustomizer
Enclosing class:
BundleContextProvider

public class BundleContextProvider.ContextBundleTracker extends org.osgi.util.tracker.BundleTracker
ContextBundleTracker Track deployment of Bundles that should be deployed to Jetty as contexts.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     

    Fields inherited from class org.osgi.util.tracker.BundleTracker

    context
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContextBundleTracker(org.osgi.framework.BundleContext bundleContext, String serverName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
     
    void
    removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)
     

    Methods inherited from class org.osgi.util.tracker.BundleTracker

    close, getBundles, getObject, getTracked, getTrackingCount, isEmpty, modifiedBundle, open, remove, size

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _serverName

      protected String _serverName
  • Constructor Details

    • ContextBundleTracker

      public ContextBundleTracker(org.osgi.framework.BundleContext bundleContext, String serverName)
      Parameters:
      bundleContext - our bundle
      serverName - the Server instance to which we will deploy contexts
  • Method Details

    • addingBundle

      public Object addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
      Specified by:
      addingBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer
      Overrides:
      addingBundle in class org.osgi.util.tracker.BundleTracker
    • removedBundle

      public void removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)
      Specified by:
      removedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer
      Overrides:
      removedBundle in class org.osgi.util.tracker.BundleTracker