public class LambdaSpringApplicationInitializer
extends java.lang.Object
implements org.springframework.web.WebApplicationInitializer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.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) |
java.util.List<java.lang.String> |
getSpringProfiles() |
void |
onStartup(javax.servlet.ServletContext servletContext) |
void |
setRefreshContext(boolean refreshContext) |
void |
setSpringProfiles(java.util.List<java.lang.String> springProfiles) |
public static final java.lang.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,
java.io.IOException
javax.servlet.ServletExceptionjava.io.IOExceptionpublic java.util.List<java.lang.String> getSpringProfiles()
public void setSpringProfiles(java.util.List<java.lang.String> springProfiles)
public void onStartup(javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException
onStartup in interface org.springframework.web.WebApplicationInitializerjavax.servlet.ServletExceptionCopyright © 2017. All Rights Reserved.