public class ServletContextApplicationContextInitializer extends Object implements ApplicationContextInitializer<ConfigurableWebApplicationContext>, Ordered
ApplicationContextInitializer
for setting the servlet context.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ServletContextApplicationContextInitializer(ServletContext servletContext)
Create a new
ServletContextApplicationContextInitializer instance |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
void |
initialize(ConfigurableWebApplicationContext applicationContext) |
void |
setOrder(int order) |
public ServletContextApplicationContextInitializer(ServletContext servletContext)
ServletContextApplicationContextInitializer
instanceservletContext
- the servlet that should be ultimately set.public void setOrder(int order)
public void initialize(ConfigurableWebApplicationContext applicationContext)
initialize
in interface ApplicationContextInitializer<ConfigurableWebApplicationContext>
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.