org.eclipse.jetty.osgi.boot.internal.serverfactory
Class JettyServerServiceTracker
java.lang.Object
org.eclipse.jetty.osgi.boot.internal.serverfactory.JettyServerServiceTracker
- All Implemented Interfaces:
- EventListener, IManagedJettyServerRegistry, org.osgi.framework.ServiceListener
public class JettyServerServiceTracker
- extends Object
- implements org.osgi.framework.ServiceListener, IManagedJettyServerRegistry
Deploy the jetty server instances when they are registered as an OSGi service.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JettyServerServiceTracker
public JettyServerServiceTracker()
stop
public void stop()
- Stops each one of the registered servers.
serviceChanged
public void serviceChanged(org.osgi.framework.ServiceEvent ev)
- Receives notification that a service has had a lifecycle change.
- Specified by:
serviceChanged
in interface org.osgi.framework.ServiceListener
- Parameters:
ev
- The ServiceEvent
object.
getServerInstanceWrapper
public ServerInstanceWrapper getServerInstanceWrapper(String managedServerName)
- Specified by:
getServerInstanceWrapper
in interface IManagedJettyServerRegistry
- Parameters:
managedServerName
- The server name
- Returns:
- the corresponding jetty server wrapped with its deployment properties.
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.