All Implemented Interfaces:
ApplicationContext, Lifecycle
All Known Implementing Classes:
XmlWebApplicationContext, StaticApplicationContext, ClassPathXmlApplicationContext, GenericApplicationContext, AbstractXmlApplicationContext, GenericWebApplicationContext, ResourceAdapterApplicationContext, AbstractRefreshableWebApplicationContext, FileSystemXmlApplicationContext, AbstractRefreshableConfigApplicationContext, ConfigurableWebApplicationContext, StaticPortletApplicationContext, StaticWebApplicationContext, AbstractApplicationContext, AbstractRefreshableApplicationContext, AbstractRefreshablePortletApplicationContext, XmlPortletApplicationContext, ConfigurablePortletApplicationContext
Configuration and lifecycle methods are encapsulated here to avoid making them obvious to ApplicationContext client code. The present methods should only be used by startup and shutdown code.
Juergen - Hoeller03.11.2003 - | Field Summary | ||
|---|---|---|
| String | CONFIG_LOCATION_DELIMITERS | Any number of these characters are considered delimiters between
multiple context config paths in a single String value.
|
| String | LOAD_TIME_WEAVER_BEAN_NAME | Name of the LoadTimeWeaver bean in the factory. If such a bean is supplied, the context will use a temporary ClassLoader for type matching, in order to allow the LoadTimeWeaver to process all actual bean classes. |
| Method from org.springframework.context.ConfigurableApplicationContext Summary: |
|---|
| addApplicationListener, addBeanFactoryPostProcessor, close, getBeanFactory, isActive, refresh, registerShutdownHook, setParent |
| Method from org.springframework.context.ConfigurableApplicationContext Detail: |
|---|
Note that any ApplicationListener registered here will be applied on refresh of this context. If a listener is added after the initial refresh, it will be applied on next refresh of the context. |
|
Note: Does not invoke This method can be called multiple times without side effects: Subsequent
|
Note: Do not use this to post-process the bean factory; singletons will already have been instantiated before. Use a BeanFactoryPostProcessor to intercept the BeanFactory setup process before beans get touched. Generally, this internal factory will only be accessible while the context is active, that is, inbetween #refresh() and #close() . The #isActive() flag can be used to check whether the context is in an appropriate state. |
|
As this is a startup method, it should destroy already created singletons if it fails, to avoid dangling resources. In other words, after invocation of that method, either all or no singletons at all should be instantiated. |
This method can be called multiple times. Only one shutdown hook (at max) will be registered for each context instance. |
Note that the parent shouldn't be changed: It should only be set outside a constructor if it isn't available when an object of this class is created, for example in case of WebApplicationContext setup. |