public abstract class AbstractSpringWebDaemon extends AbstractWebDaemon
PATHSPEC_CATCH_ALL, ROOT_CONTEXT_PATH, serverlogger| Constructor and Description |
|---|
AbstractSpringWebDaemon() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
configureServletContext(org.eclipse.jetty.servlet.ServletContextHandler servlet,
org.springframework.beans.factory.BeanFactory beanFactory)
Customization hook for setting servlet.
|
protected abstract WebApplicationContextLoader |
createContextLoader()
Creates Spring context loader for the application.
|
protected org.eclipse.jetty.server.Server |
createServer()
Creates server instance for current application.
|
protected org.eclipse.jetty.servlet.ServletContextHandler |
createServletContext()
Creates a servlet context for the application.
|
protected void |
stopServer()
Stops HTTP server assigned with current application.
|
start, stopdestroy, init, signalprotected abstract WebApplicationContextLoader createContextLoader()
protected org.eclipse.jetty.servlet.ServletContextHandler createServletContext()
protected abstract void configureServletContext(org.eclipse.jetty.servlet.ServletContextHandler servlet,
org.springframework.beans.factory.BeanFactory beanFactory)
This hook serves mainly purpose to configure servlet context. Everything else should be handled within Spring context.
servlet - Application servlet context.beanFactory - Spring context DIC.protected org.eclipse.jetty.server.Server createServer()
createServer in class AbstractWebDaemonprotected void stopServer()
stopServer in class AbstractWebDaemonCopyright © 2016–2017 RafaĆ Wrzeszcz - Wrzasq.pl. All rights reserved.