org.apache.xbean.spring.context
Interface SpringApplicationContext

All Superinterfaces:
org.springframework.context.ApplicationContext, org.springframework.context.ApplicationEventPublisher, org.springframework.beans.factory.BeanFactory, org.springframework.context.ConfigurableApplicationContext, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.HierarchicalBeanFactory, 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.core.io.support.ResourcePatternResolver
CLASSPATH_ALL_URL_PREFIX, CLASSPATH_URL_PREFIX
 
Method Summary
 java.util.List getBeanFactoryPostProcessors()
          Gets the list of BeanPostProcessors that will get applied to beans created with this factory.
 java.lang.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(java.lang.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(java.lang.String displayName)
          Set a friendly name for this context.
 
Methods inherited from interface org.springframework.context.ConfigurableApplicationContext
addBeanFactoryPostProcessor, close, getBeanFactory, refresh, setParent
 
Methods inherited from interface org.springframework.context.ApplicationContext
getDisplayName, getParent, getStartupDate, publishEvent
 
Methods inherited from interface org.springframework.beans.factory.ListableBeanFactory
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType
 
Methods inherited from interface org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getType, isSingleton
 
Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory
containsLocalBean, getParentBeanFactory
 
Methods inherited from interface org.springframework.context.MessageSource
getMessage, getMessage, getMessage
 
Methods inherited from interface org.springframework.core.io.support.ResourcePatternResolver
getResources
 
Methods inherited from interface org.springframework.core.io.ResourceLoader
getResource
 
Methods inherited from interface org.springframework.beans.factory.DisposableBean
destroy
 

Method Detail

setDisplayName

public void setDisplayName(java.lang.String displayName)
Set a friendly name for this context. Typically done during initialization of concrete context implementations.

Parameters:
displayName - the display name for the context

getBeanFactoryPostProcessors

public java.util.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

public void setClassLoader(java.lang.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).

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

public java.lang.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).

Will get passed to ClassPathResource's constructor for all ClassPathResource objects created by this resource loader.

Returns:
the ClassLoader to load class path resources
See Also:
ClassPathResource


Copyright © {inceptionYear}-2006 Apache Software Foundation. All Rights Reserved.