public class WebApplicationContextLoader
extends org.springframework.web.context.ContextLoader
| Constructor and Description |
|---|
WebApplicationContextLoader(Class<?> configurationClass,
String... profiles)
Initializes applicationContext loader with given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeWebApplicationContext()
Closes applicationContext of previously created web application.
|
protected org.springframework.web.context.WebApplicationContext |
createWebApplicationContext(javax.servlet.ServletContext servletContext) |
org.springframework.web.context.WebApplicationContext |
initWebApplicationContext(javax.servlet.ServletContext servletContext) |
public WebApplicationContextLoader(Class<?> configurationClass, String... profiles)
configurationClass - Configuration class to be loaded on startup.profiles - List of Spring profiles to activate.protected org.springframework.web.context.WebApplicationContext createWebApplicationContext(javax.servlet.ServletContext servletContext)
createWebApplicationContext in class org.springframework.web.context.ContextLoaderpublic org.springframework.web.context.WebApplicationContext initWebApplicationContext(javax.servlet.ServletContext servletContext)
initWebApplicationContext in class org.springframework.web.context.ContextLoaderpublic void closeWebApplicationContext()
Copyright © 2016–2017 RafaĆ Wrzeszcz - Wrzasq.pl. All rights reserved.