public class BundleWatcher extends Object implements org.osgi.util.tracker.BundleTrackerCustomizer
Modifier and Type | Field and Description |
---|---|
static String |
FILTER |
static Collection<TldBundleDiscoverer> |
JSP_REGISTRATION_HELPERS |
Constructor and Description |
---|
BundleWatcher() |
Modifier and Type | Method and Description |
---|---|
Object |
addingBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event)
A bundle is being added to the
BundleTracker . |
Map<org.osgi.framework.ServiceReference,BundleProvider> |
getDeployers(String managedServerName) |
boolean |
isWaitForDefaultServer() |
void |
modifiedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object object)
A bundle tracked by the
BundleTracker has been modified. |
void |
open() |
protected void |
openBundleTracker() |
void |
removedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object object)
A bundle tracked by the
BundleTracker has been removed. |
void |
setBundleTracker(org.osgi.util.tracker.BundleTracker bundleTracker) |
void |
setWaitForDefaultServer(boolean waitForDefaultServer) |
public static final Collection<TldBundleDiscoverer> JSP_REGISTRATION_HELPERS
public static final String FILTER
public boolean isWaitForDefaultServer()
public void setWaitForDefaultServer(boolean waitForDefaultServer)
public void setBundleTracker(org.osgi.util.tracker.BundleTracker bundleTracker)
public Map<org.osgi.framework.ServiceReference,BundleProvider> getDeployers(String managedServerName)
public 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.BundleTrackerCustomizer
bundle
- 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, 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.BundleTrackerCustomizer
bundle
- 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, 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.BundleTrackerCustomizer
bundle
- 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.protected void openBundleTracker()
Copyright © 1995-2015 Webtide. All Rights Reserved.