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_PREFIXFields 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_NAMEFields inherited from interface org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIXFields 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, ornullif using the thread context class loader on actual access (applying to the thread that does ClassPathResource calls).voidsetClassLoader(ClassLoader classLoader) Specify the ClassLoader to load class path resources with, ornullif using the thread context class loader on actual access (applying to the thread that does ClassPathResource calls).voidsetDisplayName(String displayName) Set a friendly name for this context.Methods inherited from interface org.springframework.context.ApplicationContext
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDateMethods inherited from interface org.springframework.context.ApplicationEventPublisher
publishEvent, publishEventMethods inherited from interface org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatchMethods inherited from interface org.springframework.context.ConfigurableApplicationContext
addApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setEnvironment, setId, setParentMethods inherited from interface org.springframework.beans.factory.DisposableBean
destroyMethods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory
containsLocalBean, getParentBeanFactoryMethods inherited from interface org.springframework.context.Lifecycle
isRunning, start, stopMethods inherited from interface org.springframework.beans.factory.ListableBeanFactory
containsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotationMethods inherited from interface org.springframework.context.MessageSource
getMessage, getMessage, getMessageMethods inherited from interface org.springframework.core.io.ResourceLoader
getResourceMethods 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, ornullif 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, ornullif 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:
getClassLoaderin interfaceorg.springframework.core.io.ResourceLoader- Returns:
- the ClassLoader to load class path resources
- See Also:
-
ClassPathResource
-