public interface SpringApplicationContext
extends org.springframework.context.ConfigurableApplicationContext, org.springframework.beans.factory.DisposableBean, org.springframework.core.io.ResourceLoader
APPLICATION_STARTUP_BEAN_NAME, CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SHUTDOWN_HOOK_THREAD_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME| Modifier and Type | Method and Description |
|---|---|
List |
getBeanFactoryPostProcessors()
Gets the list of BeanPostProcessors that will get applied
to beans created with this factory.
|
ClassLoader |
getClassLoader()
Return the ClassLoader to load class path resources with,
or
null if using the thread context class loader on actual access
(applying to the thread that does ClassPathResource calls). |
void |
setClassLoader(ClassLoader classLoader)
Specify the ClassLoader to load class path resources with,
or
null if using the thread context class loader on actual access
(applying to the thread that does ClassPathResource calls). |
void |
setDisplayName(String displayName)
Set a friendly name for this context.
|
addApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getApplicationStartup, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setApplicationStartup, setEnvironment, setId, setParentgetApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDatecontainsBeanDefinition, findAnnotationOnBean, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeansOfType, getBeansOfType, getBeansWithAnnotationcontainsLocalBean, getParentBeanFactorycontainsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatchgetMessage, getMessage, getMessagepublishEvent, publishEventvoid setDisplayName(String displayName)
displayName - the display name for the contextList getBeanFactoryPostProcessors()
void setClassLoader(ClassLoader classLoader)
null if using the thread context class loader on actual access
(applying to the thread that does ClassPathResource calls).
The default is that ClassLoader access will happen via the thread context class loader on actual access (applying to the thread that does ClassPathResource calls).
setClassLoader in interface org.springframework.context.ConfigurableApplicationContextclassLoader - the ClassLoader to load class path resourcesClassLoader getClassLoader()
null if using the thread context class loader on actual access
(applying to the thread that does ClassPathResource calls).
Will get passed to ClassPathResource's constructor for all ClassPathResource objects created by this resource loader.
getClassLoader in interface org.springframework.core.io.ResourceLoaderClassPathResourceCopyright © 2005–2023 The Apache Software Foundation. All rights reserved.