org.apache.xbean.spring.context.impl
Class XBeanXmlBeanDefinitionReader
java.lang.Object
org.springframework.beans.factory.support.AbstractBeanDefinitionReader
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
org.apache.xbean.spring.context.impl.XBeanXmlBeanDefinitionReader
- All Implemented Interfaces:
- org.springframework.beans.factory.support.BeanDefinitionReader
- public class XBeanXmlBeanDefinitionReader
- extends org.springframework.beans.factory.xml.XmlBeanDefinitionReader
XBeanXmlBeanDefinitionReader extends XmlBeanDefinitionReader adds support for SpringXMLPreprocessors which can
modify the DOM before it is passed to Spring for reading. This allows for extra information to be added into the
Spring configuration file that is processed and removed before Spring sees the xml.
- Since:
- 2.0
- Version:
- $Id$
- Author:
- Dain Sundstrom
Fields inherited from class org.springframework.beans.factory.support.AbstractBeanDefinitionReader |
logger |
Constructor Summary |
XBeanXmlBeanDefinitionReader(SpringApplicationContext applicationContext,
org.springframework.beans.factory.support.BeanDefinitionRegistry beanFactory,
java.util.List xmlPreprocessors)
Creates a XBeanXmlBeanDefinitionReader for the specified applicationContext and beanFactory which will apply
the xmlPreprocessors before passing the DOM to Spring for processing. |
Method Summary |
org.springframework.context.ApplicationContext |
getApplicationContext()
Gets the application context for which the bean definitons will be loaded. |
int |
registerBeanDefinitions(org.w3c.dom.Document doc,
org.springframework.core.io.Resource resource)
|
Methods inherited from class org.springframework.beans.factory.xml.XmlBeanDefinitionReader |
createDocumentBuilder, createDocumentBuilderFactory, doLoadBeanDefinitions, loadBeanDefinitions, loadBeanDefinitions, loadBeanDefinitions, loadBeanDefinitions, setEntityResolver, setErrorHandler, setNamespaceAware, setParserClass, setValidating |
Methods inherited from class org.springframework.beans.factory.support.AbstractBeanDefinitionReader |
getBeanClassLoader, getBeanFactory, getResourceLoader, loadBeanDefinitions, loadBeanDefinitions, setBeanClassLoader, setResourceLoader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XBeanXmlBeanDefinitionReader
public XBeanXmlBeanDefinitionReader(SpringApplicationContext applicationContext,
org.springframework.beans.factory.support.BeanDefinitionRegistry beanFactory,
java.util.List xmlPreprocessors)
- Creates a XBeanXmlBeanDefinitionReader for the specified applicationContext and beanFactory which will apply
the xmlPreprocessors before passing the DOM to Spring for processing.
- Parameters:
applicationContext
- the application context for which the bean definitons will be loadedbeanFactory
- the beanFactory that services will be loadedxmlPreprocessors
- the preprocessors to apply the DOM before passing to Spring for processing
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
- Gets the application context for which the bean definitons will be loaded.
- Returns:
- the application context for which the bean definitons will be loaded
registerBeanDefinitions
public int registerBeanDefinitions(org.w3c.dom.Document doc,
org.springframework.core.io.Resource resource)
throws org.springframework.beans.BeansException
-
- Throws:
org.springframework.beans.BeansException
Copyright © {inceptionYear}-2006 Apache Software Foundation. All Rights Reserved.