public class TrackingFileSystemXmlApplicationContext extends org.springframework.context.support.FileSystemXmlApplicationContext implements TrackingApplicationContext, BaseLocationApplicationContext, CheckableBeanFactory
FileSystemXmlApplicationContext.
Additionally adds aspects of TrackingApplicationContext, BaseLocationApplicationContext and
CheckableBeanFactory.org.springframework.core.io.DefaultResourceLoader.ClassPathContextResourceCheckableBeanFactory.InvalidConfigurationExceptionAPPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAMECONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME| Constructor and Description |
|---|
TrackingFileSystemXmlApplicationContext(String[] configLocations,
boolean refresh) |
TrackingFileSystemXmlApplicationContext(String[] configLocations,
boolean refresh,
org.springframework.context.ApplicationContext parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForInvalidBeanDefinitions()
Checks whether this application context's configuration file(s) contain valid bean definitions.
|
String |
getBaseLocation() |
List<File> |
getFiles() |
org.springframework.core.io.Resource |
getResource(String location) |
static void |
handleXmlBeanDefinitionStoreException(org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException e) |
protected void |
loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory) |
String |
toString() |
getResourceByPathgetConfigResources, initBeanDefinitionReader, loadBeanDefinitions, setValidatingafterPropertiesSet, getConfigLocations, getDefaultConfigLocations, resolvePath, setBeanName, setConfigLocation, setConfigLocations, setIdassertBeanFactoryActive, cancelRefresh, closeBeanFactory, createBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferencesaddApplicationListener, addBeanFactoryPostProcessor, close, containsBean, containsBeanDefinition, containsLocalBean, createEnvironment, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getApplicationName, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getEnvironment, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResourcePatternResolver, getResources, getStartupDate, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, initPropertySources, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, isTypeMatch, obtainFreshBeanFactory, onClose, onRefresh, postProcessBeanFactory, prepareBeanFactory, prepareRefresh, publishEvent, publishEvent, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, resetCommonCaches, setDisplayName, setEnvironment, setParent, start, stopaddProtocolResolver, getClassLoader, getProtocolResolvers, setClassLoaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic TrackingFileSystemXmlApplicationContext(String[] configLocations, boolean refresh) throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic TrackingFileSystemXmlApplicationContext(String[] configLocations, boolean refresh, org.springframework.context.ApplicationContext parent) throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic org.springframework.core.io.Resource getResource(String location)
getResource in interface org.springframework.core.io.ResourceLoadergetResource in class org.springframework.core.io.DefaultResourceLoaderpublic List<File> getFiles()
getFiles in interface TrackingApplicationContextpublic String getBaseLocation()
getBaseLocation in interface BaseLocationApplicationContextprotected void loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory)
throws org.springframework.beans.BeansException,
IOException
loadBeanDefinitions in class org.springframework.context.support.AbstractXmlApplicationContextorg.springframework.beans.BeansExceptionIOExceptionpublic void checkForInvalidBeanDefinitions()
throws CheckableBeanFactory.InvalidConfigurationException
CheckableBeanFactorycheckForInvalidBeanDefinitions in interface CheckableBeanFactoryCheckableBeanFactory.InvalidConfigurationException - if the configuration is not validpublic static void handleXmlBeanDefinitionStoreException(org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException e)
throws CheckableBeanFactory.InvalidConfigurationException
public String toString()
toString in class org.springframework.context.support.AbstractApplicationContextCopyright © 2021. All Rights Reserved.