public class JettyServersManagedFactory extends Object implements org.osgi.service.cm.ManagedServiceFactory, IManagedJettyServerRegistry
| Modifier and Type | Field and Description |
|---|---|
static String |
JETTY_CONFIG_XML
key to configure the server according to a jetty.xml file
|
static String |
JETTY_FACTORY
invoke jetty-factory class.
|
static String |
JETTY_HOME
key to configure the server according to a jetty home folder.
|
static String |
JETTY_HTTP_PORT
default property in jetty.xml that is used as the value of the http port.
|
static String |
JETTY_HTTPS_PORT
default property in jetty.xml that is used as the value of the https
port.
|
| Constructor and Description |
|---|
JettyServersManagedFactory() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createNewServer(org.osgi.framework.Bundle contributor,
String serverName,
String urlsToJettyXml)
Helper method to create and configure a new Jetty Server via the ManagedServiceFactory
|
void |
deleted(String pid) |
String |
getName()
Return a descriptive name of this factory.
|
ServerInstanceWrapper |
getServerByPID(String pid) |
ServerInstanceWrapper |
getServerInstanceWrapper(String managedServerName) |
void |
updated(String pid,
Dictionary properties) |
public static final String JETTY_HOME
public static final String JETTY_CONFIG_XML
public static final String JETTY_FACTORY
public static final String JETTY_HTTP_PORT
public static final String JETTY_HTTPS_PORT
public String getName()
getName in interface org.osgi.service.cm.ManagedServiceFactorypublic void updated(String pid, Dictionary properties) throws org.osgi.service.cm.ConfigurationException
updated in interface org.osgi.service.cm.ManagedServiceFactoryorg.osgi.service.cm.ConfigurationExceptionpublic void deleted(String pid)
deleted in interface org.osgi.service.cm.ManagedServiceFactorypublic ServerInstanceWrapper getServerByPID(String pid)
public ServerInstanceWrapper getServerInstanceWrapper(String managedServerName)
getServerInstanceWrapper in interface IManagedJettyServerRegistrymanagedServerName - The server namepublic static void createNewServer(org.osgi.framework.Bundle contributor,
String serverName,
String urlsToJettyXml)
throws Exception
contributor - serverName - urlsToJettyXml - ExceptionCopyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.