|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.context.support.GenericApplicationContext org.codehaus.groovy.grails.commons.spring.GrailsApplicationContext org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext
public class GrailsWebApplicationContext extends GrailsApplicationContext
A WebApplicationContext that extends StaticApplicationContext to allow for programmatic configuration at runtime. The code is adapted from StaticWebApplicationContext.
Field Summary |
---|
Fields inherited from class GrailsApplicationContext | |
---|---|
metaClass |
Constructor Summary | |
GrailsWebApplicationContext()
|
|
GrailsWebApplicationContext(ApplicationContext parent)
|
|
GrailsWebApplicationContext(DefaultListableBeanFactory defaultListableBeanFactory)
|
|
GrailsWebApplicationContext(DefaultListableBeanFactory defaultListableBeanFactory, ApplicationContext parent)
|
Method Summary | |
---|---|
java.lang.ClassLoader
|
getClassLoader()
|
String[]
|
getConfigLocations()
|
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. |
ServletConfig
|
getServletConfig()
|
ServletContext
|
getServletContext()
|
protected void
|
postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
Register ServletContextAwareProcessor. |
protected void
|
prepareBeanFactory(ConfigurableListableBeanFactory beanFactory)
|
void
|
setConfigLocation(java.lang.String configLocation)
|
void
|
setConfigLocations(String[] configLocations)
|
void
|
setNamespace(java.lang.String namespace)
|
void
|
setServletConfig(ServletConfig servletConfig)
|
void
|
setServletContext(ServletContext servletContext)
Set the ServletContext that this WebApplicationContext runs in. |
Methods inherited from class GrailsApplicationContext | |
---|---|
getMetaClass, getProperty, getTheme, invokeMethod, onRefresh, registerPrototype, registerPrototype, registerSingleton, registerSingleton, setMetaClass, setProperty |
Constructor Detail |
---|
public GrailsWebApplicationContext()
public GrailsWebApplicationContext(ApplicationContext parent)
public GrailsWebApplicationContext(DefaultListableBeanFactory defaultListableBeanFactory)
public GrailsWebApplicationContext(DefaultListableBeanFactory defaultListableBeanFactory, ApplicationContext parent)
Method Detail |
---|
@Override public java.lang.ClassLoader getClassLoader()
public String[] getConfigLocations()
public java.lang.String getNamespace()
@Override protected Resource getResourceByPath(java.lang.String path)
@Override protected ResourcePatternResolver getResourcePatternResolver()
public ServletConfig getServletConfig()
public ServletContext getServletContext()
@Override protected void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
@Override protected void prepareBeanFactory(ConfigurableListableBeanFactory beanFactory)
public void setConfigLocation(java.lang.String configLocation)
public void setConfigLocations(String[] configLocations)
public void setNamespace(java.lang.String namespace)
public void setServletConfig(ServletConfig servletConfig)
public void setServletContext(ServletContext servletContext)
Groovy Documentation