org.apache.xbean.spring.context.impl
Class XBeanXmlBeanDefinitionReader

java.lang.Object
  extended byorg.springframework.beans.factory.support.AbstractBeanDefinitionReader
      extended byorg.springframework.beans.factory.xml.XmlBeanDefinitionReader
          extended byorg.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

Field Summary
 
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
 

Constructor Detail

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 loaded
beanFactory - the beanFactory that services will be loaded
xmlPreprocessors - the preprocessors to apply the DOM before passing to Spring for processing
Method Detail

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.