public class WebBundleTrackerCustomizer
extends java.lang.Object
implements org.osgi.util.tracker.BundleTrackerCustomizer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FILTER |
static java.util.Collection<WebappRegistrationCustomizer> |
JSP_REGISTRATION_HELPERS |
| Constructor and Description |
|---|
WebBundleTrackerCustomizer() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
addingBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event)
A bundle is being added to the
BundleTracker. |
void |
modifiedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
java.lang.Object object)
A bundle tracked by the
BundleTracker has been modified. |
void |
removedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
java.lang.Object object)
A bundle tracked by the
BundleTracker has been removed. |
public static java.util.Collection<WebappRegistrationCustomizer> JSP_REGISTRATION_HELPERS
public static final java.lang.String FILTER
public WebBundleTrackerCustomizer()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object addingBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event)
BundleTracker.
This method is called before a bundle which matched the search parameters
of the BundleTracker is added to the
BundleTracker. This method should return the object to be
tracked for the specified Bundle. The returned object is
stored in the BundleTracker and is available from the
getObject method.
addingBundle in interface org.osgi.util.tracker.BundleTrackerCustomizerbundle - The Bundle being added to the
BundleTracker.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.Bundle
object or null if the specified Bundle
object should not be tracked.public void modifiedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
java.lang.Object object)
BundleTracker has been modified.
This method is called when a bundle being tracked by the
BundleTracker has had its state modified.
modifiedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizerbundle - 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 tracked object for the specified bundle.public void removedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
java.lang.Object object)
BundleTracker has been removed.
This method is called after a bundle is no longer being tracked by the
BundleTracker.
removedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizerbundle - The Bundle that has been 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 tracked object for the specified bundle.Copyright © 2013 FuseSource, Corp.. All Rights Reserved.