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.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.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
 
Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver
CLASSPATH_ALL_URL_PREFIX
 
Fields inherited from interface org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
 
Method Summary
 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.
 
Methods inherited from interface org.springframework.context.ConfigurableApplicationContext
addApplicationListener, addBeanFactoryPostProcessor, close, getBeanFactory, isActive, refresh, registerShutdownHook, setParent
 
Methods inherited from interface org.springframework.context.ApplicationContext
getAutowireCapableBeanFactory, getDisplayName, getParent, getStartupDate
 
Methods inherited from interface org.springframework.beans.factory.ListableBeanFactory
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType
 
Methods inherited from interface org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch
 
Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory
containsLocalBean, getParentBeanFactory
 
Methods inherited from interface org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch
 
Methods inherited from interface org.springframework.context.MessageSource
getMessage, getMessage, getMessage
 
Methods inherited from interface org.springframework.context.ApplicationEventPublisher
publishEvent
 
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.context.Lifecycle
isRunning, start, stop
 
Methods inherited from interface org.springframework.beans.factory.DisposableBean
destroy
 

Method Detail

setDisplayName

void setDisplayName(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

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

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).

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, 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.

Specified by:
getClassLoader in interface org.springframework.core.io.ResourceLoader
Returns:
the ClassLoader to load class path resources
See Also:
ClassPathResource


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.