public class JettyComponent extends DefaultComponent
Contexts are registered like this:
First, if there is a jetty.xml config file, the contexts defined
there are registered first; if there is no jetty.xml, a log context
will be create programatically and registered first.
Second an empty collection context is registered. Here will be registered all regular war contexts.
Third, the root collection is registered. This way all requests not handled by regular wars are directed to the root war, which usually is the webengine war in a nxserver application.
| Modifier and Type | Field and Description |
|---|---|
protected File |
config |
protected ContextManager |
ctxMgr |
protected File |
log |
static ComponentName |
NAME |
protected ClassLoader |
nuxeoCL |
static String |
P_SCAN_WEBDIR |
protected org.mortbay.jetty.Server |
server |
protected org.mortbay.jetty.handler.ContextHandlerCollection |
warContexts |
static String |
XP_FILTER |
static String |
XP_LISTENERS |
static String |
XP_SERVLET |
static String |
XP_WEB_APP |
lastModified| Constructor and Description |
|---|
JettyComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ComponentContext context) |
void |
applicationStarted(ComponentContext context) |
void |
deactivate(ComponentContext context) |
<T> T |
getAdapter(Class<T> adapter) |
int |
getApplicationStartedOrder() |
protected ClassLoader |
getClassLoader(ClassLoader cl) |
ContextManager |
getContextManager() |
org.mortbay.jetty.Server |
getServer() |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
setNuxeoClassLoader(ClassLoader cl) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterExtensionpublic static final ComponentName NAME
public static final String XP_WEB_APP
public static final String XP_SERVLET
public static final String XP_FILTER
public static final String XP_LISTENERS
public static final String P_SCAN_WEBDIR
protected org.mortbay.jetty.Server server
protected ContextManager ctxMgr
protected org.mortbay.jetty.handler.ContextHandlerCollection warContexts
protected File config
protected File log
protected ClassLoader nuxeoCL
public org.mortbay.jetty.Server getServer()
public void activate(ComponentContext context) throws Exception
activate in interface Componentactivate in class DefaultComponentExceptionpublic void deactivate(ComponentContext context) throws Exception
deactivate in interface Componentdeactivate in class DefaultComponentExceptionpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution in class DefaultComponentExceptionpublic ContextManager getContextManager()
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution in class DefaultComponentExceptionpublic <T> T getAdapter(Class<T> adapter)
getAdapter in interface AdaptablegetAdapter in class DefaultComponentpublic void setNuxeoClassLoader(ClassLoader cl)
protected ClassLoader getClassLoader(ClassLoader cl)
public int getApplicationStartedOrder()
getApplicationStartedOrder in interface ComponentgetApplicationStartedOrder in class DefaultComponentpublic void applicationStarted(ComponentContext context) throws Exception
applicationStarted in interface ComponentapplicationStarted in class DefaultComponentExceptionCopyright © 2020 Nuxeo SA. All rights reserved.