public class ServiceWatcher extends Object implements org.osgi.util.tracker.ServiceTrackerCustomizer
ContextHandler
is activated as an osgi service we find a jetty deployer
for it. The ContextHandler could be either a WebAppContext or any other derivative of
ContextHandler.
ContextHandlers and WebApps can also be deployed into jetty without creating them as
osgi services. Instead, they can be deployed via manifest headers inside bundles. See
BundleWatcher
.Constructor and Description |
---|
ServiceWatcher() |
Modifier and Type | Method and Description |
---|---|
Object |
addingService(org.osgi.framework.ServiceReference reference)
A Service that is a ContextHandler is detected.
|
Object |
addService(org.osgi.framework.BundleContext context,
ContextHandler contextHandler,
org.osgi.framework.ServiceReference reference)
Deploy ContextHandler that is a Service.
|
Map<org.osgi.framework.ServiceReference,ServiceProvider> |
getDeployers(String managedServerName) |
void |
modifiedService(org.osgi.framework.ServiceReference reference,
Object service)
A Service that is a ContextHandler has been modified.
|
void |
removedService(org.osgi.framework.ServiceReference reference,
Object service)
A Service that is a ContextHandler is being removed.
|
void |
removeService(org.osgi.framework.BundleContext context,
ContextHandler contextHandler,
org.osgi.framework.ServiceReference reference)
Undeploy a ContextHandler that is a Service.
|
public static final String FILTER
public Map<org.osgi.framework.ServiceReference,ServiceProvider> getDeployers(String managedServerName)
managedServerName
- public Object addingService(org.osgi.framework.ServiceReference reference)
addingService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
ServiceTrackerCustomizer.addingService(org.osgi.framework.ServiceReference)
public void modifiedService(org.osgi.framework.ServiceReference reference, Object service)
modifiedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
ServiceTrackerCustomizer.modifiedService(org.osgi.framework.ServiceReference, java.lang.Object)
public void removedService(org.osgi.framework.ServiceReference reference, Object service)
removedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
ServiceTrackerCustomizer.removedService(org.osgi.framework.ServiceReference, java.lang.Object)
public Object addService(org.osgi.framework.BundleContext context, ContextHandler contextHandler, org.osgi.framework.ServiceReference reference)
reference
- public void removeService(org.osgi.framework.BundleContext context, ContextHandler contextHandler, org.osgi.framework.ServiceReference reference)
reference
- Copyright © 1995-2015 Webtide. All Rights Reserved.