com.interface21.context.support
Class AbstractXmlApplicationContext

java.lang.Object
  |
  +--com.interface21.context.support.AbstractApplicationContext
        |
        +--com.interface21.context.support.AbstractXmlApplicationContext
All Implemented Interfaces:
ApplicationContext, BeanFactory, ListableBeanFactory, MessageSource
Direct Known Subclasses:
AbstractXmlUiApplicationContext, FileSystemXmlApplicationContext

public abstract class AbstractXmlApplicationContext
extends AbstractApplicationContext

Convenient abstract superclass for ApplicationContext implementations drawing their configuration from XML documents containing bean definitions understood by an XMLBeanFactory

Version:
$Revision: 1.7 $
Author:
Rod Johnson
See Also:
XmlBeanFactory

Fields inherited from class com.interface21.context.support.AbstractApplicationContext
logger, MESSAGE_SOURCE_BEAN_NAME, OPTIONS_BEAN_NAME
 
Constructor Summary
AbstractXmlApplicationContext()
           
AbstractXmlApplicationContext(ApplicationContext parent)
           
 
Method Summary
 ListableBeanFactory getBeanFactory()
          Return the default BeanFactory for this context
protected abstract  java.io.InputStream getInputStreamForBeanFactory()
          Open and return the input stream for the bean factory for this namespace.
protected  void refreshBeanFactory()
          Subclasses must implement this method to perform the actual configuration load.
 
Methods inherited from class com.interface21.context.support.AbstractApplicationContext
addListener, configureManagedObject, getAliases, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanDefinitionNames, getDisplayName, getMessage, getMessage, getMessage, getOptions, getParent, getResourceAsStream, getResourceBasePath, getResourceByPath, getStartupDate, isSingleton, onRefresh, publishEvent, refresh, removeSharedObject, setDisplayName, setParent, sharedObject, shareObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractXmlApplicationContext

public AbstractXmlApplicationContext()

AbstractXmlApplicationContext

public AbstractXmlApplicationContext(ApplicationContext parent)
Method Detail

refreshBeanFactory

protected void refreshBeanFactory()
                           throws ApplicationContextException
Description copied from class: AbstractApplicationContext
Subclasses must implement this method to perform the actual configuration load.
Overrides:
refreshBeanFactory in class AbstractApplicationContext

getBeanFactory

public final ListableBeanFactory getBeanFactory()
Return the default BeanFactory for this context
Overrides:
getBeanFactory in class AbstractApplicationContext
Following copied from class: com.interface21.context.support.AbstractApplicationContext
Returns:
this application context's default BeanFactory

getInputStreamForBeanFactory

protected abstract java.io.InputStream getInputStreamForBeanFactory()
                                                             throws java.io.IOException
Open and return the input stream for the bean factory for this namespace. If namespace is null, return the input stream for the default bean factory.
Throws:
java.io.IOException - if the required XML document isn't found


Rod Johnson and Spring contributors 2001-2003.