Package org.apache.xbean.spring.context
Interface SpringApplicationContext
- All Superinterfaces:
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
- All Known Implementing Classes:
ClassPathXmlApplicationContext
,FileSystemXmlApplicationContext
,ResourceXmlApplicationContext
,XmlWebApplicationContext
public interface SpringApplicationContext
extends org.springframework.context.ConfigurableApplicationContext, org.springframework.beans.factory.DisposableBean, org.springframework.core.io.ResourceLoader
SpringApplicationContext is an interface that defines the actual interface exposed by the application contexts
provided by Spring. This interface should be in Spring and the Spring application contexts should implement this
interface.
- Since:
- 2.0
- Version:
- $Id$
- Author:
- Dain Sundstrom
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
Fields inherited from interface org.springframework.context.ConfigurableApplicationContext
CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME
Fields inherited from interface org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver
CLASSPATH_ALL_URL_PREFIX
-
Method Summary
Modifier and TypeMethodDescriptionGets the list of BeanPostProcessors that will get applied to beans created with this factory.Return the ClassLoader to load class path resources with, ornull
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, ornull
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.Methods inherited from interface org.springframework.context.ApplicationContext
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
Methods inherited from interface org.springframework.context.ApplicationEventPublisher
publishEvent, publishEvent
Methods inherited from interface org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
Methods inherited from interface org.springframework.context.ConfigurableApplicationContext
addApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setEnvironment, setId, setParent
Methods inherited from interface org.springframework.beans.factory.DisposableBean
destroy
Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory
containsLocalBean, getParentBeanFactory
Methods inherited from interface org.springframework.context.Lifecycle
isRunning, start, stop
Methods inherited from interface org.springframework.beans.factory.ListableBeanFactory
containsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation
Methods inherited from interface org.springframework.context.MessageSource
getMessage, getMessage, getMessage
Methods inherited from interface org.springframework.core.io.ResourceLoader
getResource
Methods inherited from interface org.springframework.core.io.support.ResourcePatternResolver
getResources
-
Method Details
-
setDisplayName
Set a friendly name for this context. Typically done during initialization of concrete context implementations.- Parameters:
displayName
- the display name for the context
-
getBeanFactoryPostProcessors
List getBeanFactoryPostProcessors()Gets the list of BeanPostProcessors that will get applied to beans created with this factory.- Returns:
- the list of BeanPostProcessors that will get applied to beans created with this factory
-
setClassLoader
Specify the ClassLoader to load class path resources with, ornull
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).
- Parameters:
classLoader
- the ClassLoader to load class path resources
-
getClassLoader
ClassLoader getClassLoader()Return the ClassLoader to load class path resources with, ornull
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.
- Specified by:
getClassLoader
in interfaceorg.springframework.core.io.ResourceLoader
- Returns:
- the ClassLoader to load class path resources
- See Also:
-
ClassPathResource
-