java.lang.Objectorg.springframework.core.io.DefaultResourceLoader
org.springframework.context.support.AbstractApplicationContext
org.springframework.context.support.AbstractRefreshableApplicationContext
All Implemented Interfaces:
ConfigurableApplicationContext, DisposableBean, ResourceLoader
Direct Known Subclasses:
FileSystemXmlApplicationContext, ClassPathXmlApplicationContext, AbstractRefreshablePortletApplicationContext, XmlPortletApplicationContext, XmlWebApplicationContext, AbstractRefreshableWebApplicationContext, AbstractRefreshableConfigApplicationContext, AbstractXmlApplicationContext
The only method to be implemented by subclasses is #loadBeanDefinitions , which gets invoked on each refresh. A concrete implementation is supposed to load bean definitions into the given org.springframework.beans.factory.support.DefaultListableBeanFactory , typically delegating to one or more specific bean definition readers.
Note that there is a similar base class for WebApplicationContexts. org.springframework.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.
Concrete standalone subclasses of this base class, reading in a specific bean definition format, are ClassPathXmlApplicationContext and FileSystemXmlApplicationContext , which both derive from the common AbstractXmlApplicationContext base class.
Juergen - Hoeller1.1.3 - | Fields inherited from org.springframework.context.support.AbstractApplicationContext: |
|---|
| MESSAGE_SOURCE_BEAN_NAME, APPLICATION_EVENT_MULTICASTER_BEAN_NAME, logger |
| Constructor: |
|---|
|
|
| Method from org.springframework.context.support.AbstractRefreshableApplicationContext Summary: |
|---|
| closeBeanFactory, createBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, loadBeanDefinitions, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferences |
| Methods from org.springframework.core.io.DefaultResourceLoader: |
|---|
| getClassLoader, getResource, getResourceByPath, setClassLoader |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.context.support.AbstractRefreshableApplicationContext Detail: |
|---|
|
The default implementation creates a org.springframework.beans.factory.support.DefaultListableBeanFactory with the internal bean factory of this context's parent as parent bean factory. Can be overridden in subclasses, for example to customize DefaultListableBeanFactory's settings. |
The default implementation applies this context's "allowBeanDefinitionOverriding" and "allowCircularReferences" settings, if specified. Can be overridden in subclasses to customize any of DefaultListableBeanFactory 's settings. |
|
|
|
|
|
Default is "true". Turn this off to throw an exception when encountering a circular reference, disallowing them completely. |