public class GrailsWebApplicationContext
extends org.codehaus.groovy.grails.commons.spring.GrailsApplicationContext
implements org.springframework.web.context.ConfigurableWebApplicationContext, org.springframework.ui.context.ThemeSource
metaClassAPPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAMEAPPLICATION_CONTEXT_ID_PREFIX, SERVLET_CONFIG_BEAN_NAMECONTEXT_ATTRIBUTES_BEAN_NAME, CONTEXT_PARAMETERS_BEAN_NAME, ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, SCOPE_APPLICATION, SCOPE_GLOBAL_SESSION, SCOPE_REQUEST, SCOPE_SESSION, SERVLET_CONTEXT_BEAN_NAMECONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME| Constructor and Description |
|---|
GrailsWebApplicationContext() |
GrailsWebApplicationContext(org.springframework.context.ApplicationContext parent) |
GrailsWebApplicationContext(org.springframework.beans.factory.support.DefaultListableBeanFactory defaultListableBeanFactory) |
GrailsWebApplicationContext(org.springframework.beans.factory.support.DefaultListableBeanFactory defaultListableBeanFactory,
org.springframework.context.ApplicationContext parent) |
GrailsWebApplicationContext(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.core.env.ConfigurableEnvironment |
createEnvironment() |
java.lang.ClassLoader |
getClassLoader() |
java.lang.String[] |
getConfigLocations() |
org.springframework.web.context.ConfigurableWebEnvironment |
getEnvironment() |
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.
|
javax.servlet.ServletConfig |
getServletConfig() |
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) |
void |
setConfigLocation(java.lang.String configLocation) |
void |
setConfigLocations(java.lang.String[] configLocations) |
void |
setNamespace(java.lang.String namespace) |
void |
setServletConfig(javax.servlet.ServletConfig servletConfig) |
void |
setServletContext(javax.servlet.ServletContext servletContext)
Set the ServletContext that this WebApplicationContext runs in.
|
assertBeanFactoryActive, containsBeanDefinition, getMetaClass, getProperty, getTheme, invokeMethod, onRefresh, registerPrototype, registerPrototype, registerSingleton, registerSingleton, setMetaClass, setPropertycancelRefresh, closeBeanFactory, getBeanDefinition, getBeanFactory, getDefaultListableBeanFactory, getResource, getResources, isAlias, isBeanNameInUse, refreshBeanFactory, registerAlias, registerBeanDefinition, removeAlias, removeBeanDefinition, setAllowBeanDefinitionOverriding, setAllowCircularReferences, setId, setParent, setResourceLoaderaddApplicationListener, addBeanFactoryPostProcessor, close, containsBean, containsLocalBean, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getApplicationName, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getStartupDate, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, initPropertySources, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setEnvironment, start, stop, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddApplicationListener, addBeanFactoryPostProcessor, close, getBeanFactory, isActive, refresh, registerShutdownHook, setEnvironment, setId, setParentgetApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDatecontainsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotationcontainsLocalBean, getParentBeanFactorycontainsBean, getAliases, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatchgetMessage, getMessage, getMessagegetResourcespublic GrailsWebApplicationContext()
throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic GrailsWebApplicationContext(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication)
public GrailsWebApplicationContext(org.springframework.context.ApplicationContext parent)
throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic GrailsWebApplicationContext(org.springframework.beans.factory.support.DefaultListableBeanFactory defaultListableBeanFactory)
public GrailsWebApplicationContext(org.springframework.beans.factory.support.DefaultListableBeanFactory defaultListableBeanFactory,
org.springframework.context.ApplicationContext parent)
public java.lang.ClassLoader getClassLoader()
getClassLoader in interface org.springframework.core.io.ResourceLoadergetClassLoader in class org.springframework.core.io.DefaultResourceLoaderpublic void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ConfigurableWebApplicationContextpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface org.springframework.web.context.WebApplicationContextpublic void setNamespace(java.lang.String namespace)
setNamespace in interface org.springframework.web.context.ConfigurableWebApplicationContextpublic java.lang.String getNamespace()
getNamespace in interface org.springframework.web.context.ConfigurableWebApplicationContextpublic void setConfigLocation(java.lang.String configLocation)
setConfigLocation in interface org.springframework.web.context.ConfigurableWebApplicationContextpublic void setConfigLocations(java.lang.String[] configLocations)
setConfigLocations in interface org.springframework.web.context.ConfigurableWebApplicationContextpublic java.lang.String[] getConfigLocations()
getConfigLocations in interface org.springframework.web.context.ConfigurableWebApplicationContextprotected void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
postProcessBeanFactory in class org.springframework.context.support.AbstractApplicationContextServletContextAwareProcessorprotected org.springframework.core.io.Resource getResourceByPath(java.lang.String path)
getResourceByPath in class org.springframework.core.io.DefaultResourceLoaderServletContextResourceprotected org.springframework.core.io.support.ResourcePatternResolver getResourcePatternResolver()
getResourcePatternResolver in class org.springframework.context.support.AbstractApplicationContextServletContextResourcePatternResolverprotected void prepareBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
prepareBeanFactory in class org.codehaus.groovy.grails.commons.spring.GrailsApplicationContextpublic void setServletConfig(javax.servlet.ServletConfig servletConfig)
setServletConfig in interface org.springframework.web.context.ConfigurableWebApplicationContextpublic javax.servlet.ServletConfig getServletConfig()
getServletConfig in interface org.springframework.web.context.ConfigurableWebApplicationContextprotected org.springframework.core.env.ConfigurableEnvironment createEnvironment()
createEnvironment in class org.springframework.context.support.AbstractApplicationContextpublic org.springframework.web.context.ConfigurableWebEnvironment getEnvironment()
getEnvironment in interface org.springframework.context.ConfigurableApplicationContextgetEnvironment in interface org.springframework.core.env.EnvironmentCapablegetEnvironment in class org.springframework.context.support.AbstractApplicationContext