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

java.lang.Object
  extended by org.eclipse.jetty.osgi.boot.internal.serverfactory.ServerInstanceWrapper

public class ServerInstanceWrapper
extends Object

Exposes a Jetty Server to be managed by an OSGi ManagedServiceFactory Configure and start it. Can also be used from the ManagedServiceFactory


Constructor Summary
ServerInstanceWrapper(String managedServerName)
           
 
Method Summary
 ContextHandlerCollection getContextHandlerCollection()
           
 DeploymentManager getDeploymentManager()
           
 String getManagedServerName()
           
 OSGiAppProvider getOSGiAppProvider()
           
 ClassLoader getParentClassLoaderForWebapps()
          The classloader that should be the parent classloader for each webapp deployed on this server.
 Server getServer()
           
 WebBundleDeployerHelper getWebBundleDeployerHelp()
           
 void start(Server server, Dictionary props)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerInstanceWrapper

public ServerInstanceWrapper(String managedServerName)
Method Detail

getManagedServerName

public String getManagedServerName()

getParentClassLoaderForWebapps

public ClassLoader getParentClassLoaderForWebapps()
The classloader that should be the parent classloader for each webapp deployed on this server.

Returns:

getDeploymentManager

public DeploymentManager getDeploymentManager()
Returns:
The deployment manager registered on this server.

getOSGiAppProvider

public OSGiAppProvider getOSGiAppProvider()
Returns:
The app provider registered on this server.

getServer

public Server getServer()

getWebBundleDeployerHelp

public WebBundleDeployerHelper getWebBundleDeployerHelp()

getContextHandlerCollection

public ContextHandlerCollection getContextHandlerCollection()
Returns:
The collection of context handlers

start

public void start(Server server,
                  Dictionary props)

stop

public void stop()


Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.