Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » context » support » [javadoc | source]
org.springframework.context.support
abstract public class: AbstractRefreshableConfigApplicationContext [javadoc | source]
java.lang.Object
   org.springframework.core.io.DefaultResourceLoader
      org.springframework.context.support.AbstractApplicationContext
         org.springframework.context.support.AbstractRefreshableApplicationContext
            org.springframework.context.support.AbstractRefreshableConfigApplicationContext

All Implemented Interfaces:
    BeanNameAware, InitializingBean, ConfigurableApplicationContext, DisposableBean, ResourceLoader

Direct Known Subclasses:
    XmlWebApplicationContext, ClassPathXmlApplicationContext, AbstractXmlApplicationContext, AbstractRefreshableWebApplicationContext, FileSystemXmlApplicationContext, AbstractRefreshablePortletApplicationContext, XmlPortletApplicationContext

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 org.springframework.web.context.support.XmlWebApplicationContext and org.springframework.web.portlet.context.XmlPortletApplicationContext .
Fields inherited from org.springframework.context.support.AbstractApplicationContext:
MESSAGE_SOURCE_BEAN_NAME,  APPLICATION_EVENT_MULTICASTER_BEAN_NAME,  logger
Constructor:
 public AbstractRefreshableConfigApplicationContext() 
 public AbstractRefreshableConfigApplicationContext(ApplicationContext parent) 
    Create a new AbstractRefreshableConfigApplicationContext with the given parent context.
    Parameters:
    parent - the parent context
Method from org.springframework.context.support.AbstractRefreshableConfigApplicationContext Summary:
afterPropertiesSet,   getConfigLocations,   getDefaultConfigLocations,   resolvePath,   setBeanName,   setConfigLocation,   setConfigLocations,   setId
Methods from org.springframework.context.support.AbstractRefreshableApplicationContext:
closeBeanFactory,   createBeanFactory,   customizeBeanFactory,   getBeanFactory,   hasBeanFactory,   loadBeanDefinitions,   refreshBeanFactory,   setAllowBeanDefinitionOverriding,   setAllowCircularReferences
Methods from org.springframework.context.support.AbstractApplicationContext:
addApplicationListener,   addBeanFactoryPostProcessor,   addListener,   cancelRefresh,   close,   closeBeanFactory,   containsBean,   containsBeanDefinition,   containsLocalBean,   destroy,   destroyBeans,   doClose,   finishBeanFactoryInitialization,   finishRefresh,   getAliases,   getApplicationListeners,   getAutowireCapableBeanFactory,   getBean,   getBean,   getBean,   getBeanDefinitionCount,   getBeanDefinitionNames,   getBeanFactory,   getBeanFactoryPostProcessors,   getBeanNamesForType,   getBeanNamesForType,   getBeansOfType,   getBeansOfType,   getDisplayName,   getId,   getInternalParentBeanFactory,   getInternalParentMessageSource,   getMessage,   getMessage,   getMessage,   getParent,   getParentBeanFactory,   getResourcePatternResolver,   getResources,   getStartupDate,   getType,   initApplicationEventMulticaster,   initMessageSource,   invokeBeanFactoryPostProcessors,   isActive,   isPrototype,   isRunning,   isSingleton,   isTypeMatch,   obtainFreshBeanFactory,   onClose,   onRefresh,   postProcessBeanFactory,   prepareBeanFactory,   prepareRefresh,   publishEvent,   refresh,   refreshBeanFactory,   registerBeanPostProcessors,   registerListeners,   registerShutdownHook,   setDisplayName,   setId,   setParent,   start,   stop,   toString
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.AbstractRefreshableConfigApplicationContext Detail:
 public  void afterPropertiesSet() 
    Triggers #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. Can also include location patterns, which will get resolved via a ResourcePatternResolver.

    The default implementation returns null. Subclasses can override this to provide a set of resource locations to load bean definitions from.

 protected String[] getDefaultConfigLocations() 
    Return the default config locations to use, for the case where no explicit config locations have been specified.

    The default implementation returns null, requiring explicit config locations.

 protected String resolvePath(String path) 
    Resolve the given path, replacing placeholders with corresponding system property values if necessary. Applied to config locations.
 public  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.
 public  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.

    If not set, the implementation may use a default as appropriate.

 public  void setConfigLocations(String[] locations) 
    Set the config locations for this application context.

    If not set, the implementation may use a default as appropriate.

 public  void setId(String id)