接口 WebApplicationContext
- 所有超级接口:
cn.taketoday.context.ApplicationContext,cn.taketoday.context.ApplicationEventPublisher,cn.taketoday.beans.factory.BeanFactory,cn.taketoday.beans.factory.support.DependencyInjectorProvider,cn.taketoday.core.env.EnvironmentCapable,cn.taketoday.beans.factory.HierarchicalBeanFactory,cn.taketoday.context.MessageSource,cn.taketoday.core.io.PatternResourceLoader,cn.taketoday.core.io.ResourceLoader
- 所有已知子接口:
ConfigurableWebApplicationContext
- 所有已知实现类:
AbstractRefreshableWebApplicationContext,AnnotationConfigWebApplicationContext,GenericWebApplicationContext,StaticWebApplicationContext,XmlWebApplicationContext
This interface adds a getServletContext() method to the generic
ApplicationContext interface, and defines a well-known application attribute name
that the root context must be bound to in the bootstrap process.
Like generic application contexts, web application contexts are hierarchical. There is a single root context per application, while each servlet in the application (including a dispatcher servlet in the MVC framework) has its own child context.
In addition to standard application context lifecycle capabilities,
WebApplicationContext implementations need to detect ServletContextAware
beans and invoke the setServletContext method accordingly.
- 从以下版本开始:
- 2019-07-10 22:03
- 作者:
- Harry Yang
- 另请参阅:
-
嵌套类概要
从接口继承的嵌套类/接口 cn.taketoday.context.ApplicationContext
cn.taketoday.context.ApplicationContext.State -
字段概要
字段修饰符和类型字段说明static final StringName of the ServletContext attributes environment bean in the factory.static final StringName of the ServletContext init-params environment bean in the factory.static final StringContext attribute to bind root WebApplicationContext to on successful startup.static final StringName of the ServletContext environment bean in the factory.从接口继承的字段 cn.taketoday.context.ApplicationContext
APPLICATION_NAME从接口继承的字段 cn.taketoday.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX从接口继承的字段 cn.taketoday.core.io.PatternResourceLoader
CLASSPATH_ALL_URL_PREFIX从接口继承的字段 cn.taketoday.core.io.ResourceLoader
CLASSPATH_URL_PREFIX -
方法概要
修饰符和类型方法说明Return the standard Servlet API ServletContext for this application.从接口继承的方法 cn.taketoday.context.ApplicationContext
close, getApplicationName, getAutowireCapableBeanFactory, getBeanFactory, getDisplayName, getEnvironment, getExpressionEvaluator, getId, getParent, getStartupDate, getState, hasStarted, unwrapFactory从接口继承的方法 cn.taketoday.context.ApplicationEventPublisher
publishEvent, publishEvent从接口继承的方法 cn.taketoday.beans.factory.BeanFactory
containsBean, containsBeanDefinition, findAllAnnotationsOnBean, findAnnotationOnBean, findAnnotationOnBean, findSynthesizedAnnotation, getAliases, getAnnotatedBeans, getBean, getBean, getBean, getBean, getBean, getBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeanProvider, getBeanProvider, getBeans, getBeansOfType, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getBeansWithAnnotation, getType, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch, unwrap从接口继承的方法 cn.taketoday.beans.factory.support.DependencyInjectorProvider
getInjector从接口继承的方法 cn.taketoday.beans.factory.HierarchicalBeanFactory
containsLocalBean, getParentBeanFactory从接口继承的方法 cn.taketoday.context.MessageSource
getMessage, getMessage, getMessage从接口继承的方法 cn.taketoday.core.io.PatternResourceLoader
getResources, getResourcesArray, scan从接口继承的方法 cn.taketoday.core.io.ResourceLoader
getClassLoader, getResource
-
字段详细资料
-
ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE
Context attribute to bind root WebApplicationContext to on successful startup.Note: If the startup of the root context fails, this attribute can contain an exception or error as value. Use WebApplicationContextUtils for convenient lookup of the root WebApplicationContext.
-
SERVLET_CONTEXT_BEAN_NAME
Name of the ServletContext environment bean in the factory.- 另请参阅:
-
CONTEXT_PARAMETERS_BEAN_NAME
Name of the ServletContext init-params environment bean in the factory.Note: Possibly merged with ServletConfig parameters. ServletConfig parameters override ServletContext parameters of the same name.
-
CONTEXT_ATTRIBUTES_BEAN_NAME
Name of the ServletContext attributes environment bean in the factory.
-
-
方法详细资料
-
getServletContext
Return the standard Servlet API ServletContext for this application.
-