Package org.eclipse.jetty.osgi
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 inherited from class org.osgi.util.tracker.BundleTracker
context
-
Constructor Summary
ConstructorDescriptionContextBundleTracker
(org.osgi.framework.BundleContext bundleContext, String serverName) -
Method Summary
Modifier and TypeMethodDescriptionaddingBundle
(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
-
Field Details
-
_serverName
-
-
Constructor Details
-
ContextBundleTracker
- Parameters:
bundleContext
- our bundleserverName
- the Server instance to which we will deploy contexts
-
-
Method Details
-
addingBundle
- Specified by:
addingBundle
in interfaceorg.osgi.util.tracker.BundleTrackerCustomizer
- Overrides:
addingBundle
in classorg.osgi.util.tracker.BundleTracker
-
removedBundle
public void removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object) - Specified by:
removedBundle
in interfaceorg.osgi.util.tracker.BundleTrackerCustomizer
- Overrides:
removedBundle
in classorg.osgi.util.tracker.BundleTracker
-