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


Field Summary
static String PROPERTY_THIS_JETTY_XML_FOLDER_URL
          The value of this property points to the parent director of the jetty.xml configuration file currently executed.
 
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
 

Field Detail

PROPERTY_THIS_JETTY_XML_FOLDER_URL

public static final String PROPERTY_THIS_JETTY_XML_FOLDER_URL
The value of this property points to the parent director of the jetty.xml configuration file currently executed. Everything is passed as a URL to support the case where the bundle is zipped.

See Also:
Constant Field Values
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-2011 Mort Bay Consulting. All Rights Reserved.