public class NonEmbeddedWebApplicationContext
extends org.springframework.web.context.support.GenericWebApplicationContext
EmbeddedWebApplicationContext that can be used with a
SpringApplication in a web (i.e. servlet) context but does not require an embedded
servlet container.APPLICATION_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 |
|---|
NonEmbeddedWebApplicationContext() |
| Modifier and Type | Method and Description |
|---|---|
String |
getNamespace() |
protected org.springframework.core.io.Resource |
getResourceByPath(String path) |
javax.servlet.ServletConfig |
getServletConfig() |
protected void |
onRefresh() |
protected void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
Register ServletContextAwareProcessor.
|
protected void |
prepareWebApplicationContext(javax.servlet.ServletContext servletContext)
Prepare the
WebApplicationContext with the given fully loaded
ServletContext. |
void |
setNamespace(String namespace) |
void |
setServletConfig(javax.servlet.ServletConfig servletConfig) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
createEnvironment, getApplicationName, getConfigLocations, getResourcePatternResolver, getServletContext, getTheme, initPropertySources, setConfigLocation, setConfigLocationscancelRefresh, closeBeanFactory, getBeanDefinition, getBeanFactory, getDefaultListableBeanFactory, getResource, getResources, isAlias, isBeanNameInUse, refreshBeanFactory, registerAlias, registerBeanDefinition, removeAlias, removeBeanDefinition, setAllowBeanDefinitionOverriding, setAllowCircularReferences, setId, setParent, setResourceLoaderaddApplicationListener, addBeanFactoryPostProcessor, assertBeanFactoryActive, close, containsBean, containsBeanDefinition, containsLocalBean, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getEnvironment, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getStartupDate, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, prepareBeanFactory, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setEnvironment, start, stop, toStringgetClassLoader, setClassLoaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddApplicationListener, addBeanFactoryPostProcessor, close, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setEnvironment, setId, setParentgetAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDatecontainsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotationcontainsLocalBean, getParentBeanFactorycontainsBean, getAliases, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatchgetMessage, getMessage, getMessagegetResourcesgetClassLoader, getResourceprotected void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
postProcessBeanFactory in class org.springframework.web.context.support.GenericWebApplicationContextServletContextAwareProcessorprotected void onRefresh()
onRefresh in class org.springframework.web.context.support.GenericWebApplicationContextpublic void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ConfigurableWebApplicationContextsetServletContext in class org.springframework.web.context.support.GenericWebApplicationContextprotected void prepareWebApplicationContext(javax.servlet.ServletContext servletContext)
WebApplicationContext with the given fully loaded
ServletContext. This method is usually called from
ServletContextInitializer.onStartup(ServletContext) and is similar to the
functionality usually provided by a ContextLoaderListener.servletContext - the operational servlet contextprotected org.springframework.core.io.Resource getResourceByPath(String path)
getResourceByPath in class org.springframework.web.context.support.GenericWebApplicationContextpublic void setNamespace(String namespace)
setNamespace in interface org.springframework.web.context.ConfigurableWebApplicationContextsetNamespace in class org.springframework.web.context.support.GenericWebApplicationContextpublic String getNamespace()
getNamespace in interface org.springframework.web.context.ConfigurableWebApplicationContextgetNamespace in class org.springframework.web.context.support.GenericWebApplicationContextpublic void setServletConfig(javax.servlet.ServletConfig servletConfig)
setServletConfig in interface org.springframework.web.context.ConfigurableWebApplicationContextsetServletConfig in class org.springframework.web.context.support.GenericWebApplicationContextpublic javax.servlet.ServletConfig getServletConfig()
getServletConfig in interface org.springframework.web.context.ConfigurableWebApplicationContextgetServletConfig in class org.springframework.web.context.support.GenericWebApplicationContextCopyright © 2014 Pivotal. All rights reserved.