public class GrailsWebApplicationContext extends GrailsApplicationContext implements org.springframework.web.context.ConfigurableWebApplicationContext, org.springframework.ui.context.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
(org.springframework.context.ApplicationContext parent) |
GrailsWebApplicationContext
(org.springframework.beans.factory.support.DefaultListableBeanFactory defaultListableBeanFactory, GrailsApplication grailsApplication) |
GrailsWebApplicationContext
(org.springframework.context.ApplicationContext parent, GrailsApplication grailsApplication) |
GrailsWebApplicationContext
(org.springframework.beans.factory.support.DefaultListableBeanFactory defaultListableBeanFactory) |
GrailsWebApplicationContext
(org.springframework.beans.factory.support.DefaultListableBeanFactory defaultListableBeanFactory, org.springframework.context.ApplicationContext parent) |
GrailsWebApplicationContext
(org.springframework.beans.factory.support.DefaultListableBeanFactory defaultListableBeanFactory, org.springframework.context.ApplicationContext parent, GrailsApplication grailsApplication) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected org.springframework.core.env.ConfigurableEnvironment |
createEnvironment() |
|
public java.lang.ClassLoader |
getClassLoader() |
|
public java.lang.String[] |
getConfigLocations() |
|
public org.springframework.web.context.ConfigurableWebEnvironment |
getEnvironment() |
|
public java.lang.String |
getNamespace() |
|
protected org.springframework.core.io.Resource |
getResourceByPath(java.lang.String path) This implementation supports file paths beneath the root of the ServletContext. |
|
protected org.springframework.core.io.support.ResourcePatternResolver |
getResourcePatternResolver() This implementation supports pattern matching in unexpanded WARs too. |
|
public javax.servlet.ServletConfig |
getServletConfig() |
|
public javax.servlet.ServletContext |
getServletContext() |
|
protected void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) Register ServletContextAwareProcessor. |
|
protected void |
prepareBeanFactory(org.springframework.beans.factory.config.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(javax.servlet.ServletConfig servletConfig) |
|
public void |
setServletContext(javax.servlet.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.