类 AbstractRefreshableApplicationContext

java.lang.Object
cn.taketoday.core.io.DefaultResourceLoader
cn.taketoday.context.support.AbstractApplicationContext
cn.taketoday.context.support.AbstractRefreshableApplicationContext
所有已实现的接口:
BeanFactory, HierarchicalBeanFactory, BeanDefinitionRegistry, DependencyInjectorProvider, ApplicationContext, ApplicationEventPublisher, ConfigurableApplicationContext, Lifecycle, MessageSource, cn.taketoday.core.AliasRegistry, cn.taketoday.core.env.EnvironmentCapable, cn.taketoday.core.io.PatternResourceLoader, cn.taketoday.core.io.ResourceLoader, Closeable, AutoCloseable
直接已知子类:
AbstractRefreshableConfigApplicationContext

public abstract class AbstractRefreshableApplicationContext extends AbstractApplicationContext implements BeanDefinitionRegistry
Base class for ApplicationContext implementations which are supposed to support multiple calls to AbstractApplicationContext.refresh(), creating a new internal bean factory instance every time. Typically (but not necessarily), such a context will be driven by a set of config locations to load bean definitions from.

The only method to be implemented by subclasses is loadBeanDefinitions(cn.taketoday.beans.factory.support.StandardBeanFactory), which gets invoked on each refresh. A concrete implementation is supposed to load bean definitions into the given StandardBeanFactory, typically delegating to one or more specific bean definition readers.

Note that there is a similar base class for WebApplicationContexts. cn.taketoday.web.context.support.AbstractRefreshableWebApplicationContext provides the same subclassing strategy, but additionally pre-implements all context functionality for web environments. There is also a pre-defined way to receive config locations for a web context.

从以下版本开始:
4.0 2022/2/20 17:36
作者:
Juergen Hoeller, Chris Beams, Harry Yang
另请参阅: