public class LambdaSpringApplicationInitializer extends Object implements org.springframework.web.WebApplicationInitializer
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_NO_CONTEXT |
| Constructor and Description |
|---|
LambdaSpringApplicationInitializer(org.springframework.web.context.ConfigurableWebApplicationContext applicationContext)
Creates a new instance of the WebApplicationInitializer
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(javax.servlet.ServletContextListener listener)
Adds a new listener for the servlet context events.
|
void |
dispatch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
onStartup(javax.servlet.ServletContext servletContext) |
void |
setRefreshContext(boolean refreshContext) |
public static final String ERROR_NO_CONTEXT
public LambdaSpringApplicationInitializer(org.springframework.web.context.ConfigurableWebApplicationContext applicationContext)
applicationContext - A custom ConfigurableWebApplicationContext to be usedpublic void addListener(javax.servlet.ServletContextListener listener)
listener - An implementation of `ServletContextListener`public void setRefreshContext(boolean refreshContext)
public void dispatch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionpublic void onStartup(javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException
onStartup in interface org.springframework.web.WebApplicationInitializerjavax.servlet.ServletExceptionCopyright © 2017. All Rights Reserved.