org.eclipse.jetty.osgi.boot.internal.serverfactory
Class JettyServerServiceTracker

java.lang.Object
  extended by 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.


Constructor Summary
JettyServerServiceTracker()
           
 
Method Summary
 ServerInstanceWrapper getServerInstanceWrapper(String managedServerName)
           
 void serviceChanged(org.osgi.framework.ServiceEvent ev)
          Receives notification that a service has had a lifecycle change.
 void stop()
          Stops each one of the registered servers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyServerServiceTracker

public JettyServerServiceTracker()
Method Detail

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.