| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.core.io.DefaultResourceLoader
org.springframework.context.support.AbstractApplicationContext
org.springframework.context.support.AbstractRefreshableApplicationContext
org.springframework.context.support.AbstractRefreshableConfigApplicationContext
public abstract class AbstractRefreshableConfigApplicationContext
AbstractRefreshableApplicationContext subclass that adds common handling
 of specified config locations. Serves as base class for XML-based application
 context implementations such as ClassPathXmlApplicationContext and
 FileSystemXmlApplicationContext, as well as
 XmlWebApplicationContext and
 XmlPortletApplicationContext.
setConfigLocation(java.lang.String), 
setConfigLocations(java.lang.String[]), 
getDefaultConfigLocations()| Field Summary | 
|---|
| Fields inherited from class org.springframework.context.support.AbstractApplicationContext | 
|---|
| APPLICATION_EVENT_MULTICASTER_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME | 
| Fields inherited from interface org.springframework.context.ConfigurableApplicationContext | 
|---|
| CONFIG_LOCATION_DELIMITERS, LOAD_TIME_WEAVER_BEAN_NAME | 
| Fields inherited from interface org.springframework.beans.factory.BeanFactory | 
|---|
| FACTORY_BEAN_PREFIX | 
| Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver | 
|---|
| CLASSPATH_ALL_URL_PREFIX | 
| Fields inherited from interface org.springframework.core.io.ResourceLoader | 
|---|
| CLASSPATH_URL_PREFIX | 
| Constructor Summary | |
|---|---|
| AbstractRefreshableConfigApplicationContext()Create a new AbstractRefreshableConfigApplicationContext with no parent. | |
| AbstractRefreshableConfigApplicationContext(ApplicationContext parent)Create a new AbstractRefreshableConfigApplicationContext with the given parent context. | |
| Method Summary | |
|---|---|
|  void | afterPropertiesSet()Triggers AbstractApplicationContext.refresh()if not refreshed in the concrete context's
 constructor already. | 
| protected  String[] | getConfigLocations()Return an array of resource locations, referring to the XML bean definition files that this context should be built with. | 
| protected  String[] | getDefaultConfigLocations()Return the default config locations to use, for the case where no explicit config locations have been specified. | 
| protected  String | resolvePath(String path)Resolve the given path, replacing placeholders with corresponding system property values if necessary. | 
|  void | setBeanName(String name)Sets the id of this context to the bean name by default, for cases where the context instance is itself defined as a bean. | 
|  void | setConfigLocation(String location)Set the config locations for this application context in init-param style, i.e. with distinct locations separated by commas, semicolons or whitespace. | 
|  void | setConfigLocations(String[] locations)Set the config locations for this application context. | 
|  void | setId(String id)Set the unique id of this application context. | 
| Methods inherited from class org.springframework.context.support.AbstractRefreshableApplicationContext | 
|---|
| closeBeanFactory, createBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, loadBeanDefinitions, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferences | 
| Methods inherited from class org.springframework.core.io.DefaultResourceLoader | 
|---|
| getClassLoader, getResource, getResourceByPath, setClassLoader | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface org.springframework.core.io.ResourceLoader | 
|---|
| getClassLoader, getResource | 
| Constructor Detail | 
|---|
public AbstractRefreshableConfigApplicationContext()
public AbstractRefreshableConfigApplicationContext(ApplicationContext parent)
parent - the parent context| Method Detail | 
|---|
public void setConfigLocation(String location)
If not set, the implementation may use a default as appropriate.
public void setConfigLocations(String[] locations)
If not set, the implementation may use a default as appropriate.
protected String[] getConfigLocations()
The default implementation returns null. Subclasses can override
 this to provide a set of resource locations to load bean definitions from.
null if noneAbstractApplicationContext.getResources(java.lang.String), 
AbstractApplicationContext.getResourcePatternResolver()protected String[] getDefaultConfigLocations()
The default implementation returns null,
 requiring explicit config locations.
setConfigLocations(java.lang.String[])protected String resolvePath(String path)
path - the original file path
SystemPropertyUtils.resolvePlaceholders(java.lang.String)public void setId(String id)
AbstractApplicationContextDefault is the object id of the context instance, or the name of the context bean if the context is itself defined as a bean.
setId in class AbstractApplicationContextid - the unique id of the contextpublic void setBeanName(String name)
setBeanName in interface BeanNameAwarename - the name of the bean in the factory.
 Note that this name is the actual bean name used in the factory, which may
 differ from the originally specified name: in particular for inner bean
 names, the actual bean name might have been made unique through appending
 "#..." suffixes. Use the BeanFactoryUtils.originalBeanName(String)
 method to extract the original bean name (without suffix), if desired.public void afterPropertiesSet()
AbstractApplicationContext.refresh() if not refreshed in the concrete context's
 constructor already.
afterPropertiesSet in interface InitializingBean| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||