org.springframework.context.ApplicationContext
, org.springframework.context.ApplicationEventPublisher
, AutoCloseable
, org.springframework.beans.factory.BeanFactory
, Closeable
, org.springframework.context.ConfigurableApplicationContext
, org.springframework.beans.factory.DisposableBean
, org.springframework.core.env.EnvironmentCapable
, org.springframework.beans.factory.HierarchicalBeanFactory
, org.springframework.context.Lifecycle
, org.springframework.beans.factory.ListableBeanFactory
, org.springframework.context.MessageSource
, org.springframework.core.io.ResourceLoader
, org.springframework.core.io.support.ResourcePatternResolver
ClassPathXmlApplicationContext
, FileSystemXmlApplicationContext
, ResourceXmlApplicationContext
, XmlWebApplicationContext
public interface SpringApplicationContext
extends org.springframework.context.ConfigurableApplicationContext, org.springframework.beans.factory.DisposableBean, org.springframework.core.io.ResourceLoader
Modifier and Type | Method | 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.
|
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
publishEvent, publishEvent
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
addApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setEnvironment, setId, setParent
containsLocalBean, getParentBeanFactory
containsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation
void 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).
classLoader
- 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.ResourceLoader
ClassPathResource
Copyright © 2005–2018. All rights reserved.