public class WebAppMain extends Object implements javax.servlet.ServletContextListener
Modifier and Type | Class and Description |
---|---|
static class |
WebAppMain.FileAndDescription
Add some metadata to a File, allowing to trace setup issues
|
Constructor and Description |
---|
WebAppMain() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent event) |
void |
contextInitialized(javax.servlet.ServletContextEvent event)
Creates the sole instance of
Jenkins and register it to the ServletContext . |
WebAppMain.FileAndDescription |
getHomeDir(javax.servlet.ServletContextEvent event)
Determines the home directory for Jenkins.
|
static void |
installExpressionFactory(javax.servlet.ServletContextEvent event) |
void |
joinInit() |
public void contextInitialized(javax.servlet.ServletContextEvent event)
Jenkins
and register it to the ServletContext
.contextInitialized
in interface javax.servlet.ServletContextListener
public void joinInit() throws InterruptedException
InterruptedException
public static void installExpressionFactory(javax.servlet.ServletContextEvent event)
public WebAppMain.FileAndDescription getHomeDir(javax.servlet.ServletContextEvent event)
We look for a setting that affects the smallest scope first, then bigger ones later.
People makes configuration mistakes, so we are trying to be nice
with those by doing String.trim()
.
public void contextDestroyed(javax.servlet.ServletContextEvent event)
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2018. All rights reserved.