public class GrailsWebApplicationContext extends GrailsApplicationContext implements ConfigurableWebApplicationContext, ThemeSource
A WebApplicationContext that extends StaticApplicationContext to allow for programmatic configuration at runtime. The code is adapted from StaticWebApplicationContext.
| Fields inherited from class | Fields |
|---|---|
class GrailsApplicationContext |
metaClass |
| Constructor and description |
|---|
GrailsWebApplicationContext() |
GrailsWebApplicationContext(GrailsApplication grailsApplication) |
GrailsWebApplicationContext(ApplicationContext parent) |
GrailsWebApplicationContext(DefaultListableBeanFactory defaultListableBeanFactory, GrailsApplication grailsApplication) |
GrailsWebApplicationContext(ApplicationContext parent, GrailsApplication grailsApplication) |
GrailsWebApplicationContext(DefaultListableBeanFactory defaultListableBeanFactory) |
GrailsWebApplicationContext(DefaultListableBeanFactory defaultListableBeanFactory, ApplicationContext parent) |
GrailsWebApplicationContext(DefaultListableBeanFactory defaultListableBeanFactory, ApplicationContext parent, GrailsApplication grailsApplication) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected ConfigurableEnvironment |
createEnvironment() |
|
public java.lang.ClassLoader |
getClassLoader() |
|
public java.lang.String[] |
getConfigLocations() |
|
public ConfigurableWebEnvironment |
getEnvironment() |
|
public java.lang.String |
getNamespace() |
|
protected Resource |
getResourceByPath(java.lang.String path)This implementation supports file paths beneath the root of the ServletContext. |
|
protected ResourcePatternResolver |
getResourcePatternResolver()This implementation supports pattern matching in unexpanded WARs too. |
|
public ServletConfig |
getServletConfig() |
|
public ServletContext |
getServletContext() |
|
protected void |
postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)Register ServletContextAwareProcessor. |
|
protected void |
prepareBeanFactory(ConfigurableListableBeanFactory beanFactory) |
|
public void |
setConfigLocation(java.lang.String configLocation) |
|
public void |
setConfigLocations(java.lang.String[] configLocations) |
|
public void |
setNamespace(java.lang.String namespace) |
|
public void |
setServletConfig(ServletConfig servletConfig) |
|
public void |
setServletContext(ServletContext servletContext)Set the ServletContext that this WebApplicationContext runs in. |
| Methods inherited from class | Name |
|---|---|
class GrailsApplicationContext |
assertBeanFactoryActive, containsBeanDefinition, getMetaClass, getProperty, getTheme, invokeMethod, onRefresh, prepareBeanFactory, registerPrototype, registerPrototype, registerSingleton, registerSingleton, setMetaClass, setProperty |
This implementation supports file paths beneath the root of the ServletContext.
This implementation supports pattern matching in unexpanded WARs too.
Register ServletContextAwareProcessor.
Set the ServletContext that this WebApplicationContext runs in.