com.interface21.context.support
Class FileSystemXmlApplicationContext
java.lang.Object
|
+--com.interface21.context.support.AbstractApplicationContext
|
+--com.interface21.context.support.AbstractXmlApplicationContext
|
+--com.interface21.context.support.FileSystemXmlApplicationContext
- All Implemented Interfaces:
- ApplicationContext, BeanFactory, ListableBeanFactory, MessageSource
- Direct Known Subclasses:
- ClassPathXmlApplicationContext
- public class FileSystemXmlApplicationContext
- extends AbstractXmlApplicationContext
Standalone XML application context, taking the context definition
files from the file system or from URLs. Mainly useful for test
harnesses, but also for standalone environments.
- Author:
- Rod Johnson, Juergen Hoeller
| 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 |
FileSystemXmlApplicationContext
public FileSystemXmlApplicationContext(java.lang.String locations)
throws ApplicationContextException,
java.io.IOException
- Create a new FileSystemXmlApplicationContext with the given location.
The locations specify the parents in descending order, i.e. the last
location is the one of this context.
- Parameters:
locations - comma-delimited String consisting of locations
FileSystemXmlApplicationContext
public FileSystemXmlApplicationContext(java.lang.String[] locations)
throws ApplicationContextException,
java.io.IOException
- Create a new FileSystemXmlApplicationContext with the given locations.
The locations specify the parents in descending order, i.e. the last
location is the one of this context.
- Parameters:
locations - String array consisting of locations
createParentContext
protected ApplicationContext createParentContext(java.lang.String[] locations)
throws java.io.IOException
getInputStreamForBeanFactory
protected final java.io.InputStream getInputStreamForBeanFactory()
throws java.io.IOException
- Description copied from class:
AbstractXmlApplicationContext
- 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.
- Overrides:
getInputStreamForBeanFactory in class AbstractXmlApplicationContext
- Following copied from class:
com.interface21.context.support.AbstractXmlApplicationContext
- Throws:
java.io.IOException - if the required XML document isn't found
Rod Johnson and Spring contributors 2001-2003.