|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.beans.factory.support.AbstractBeanDefinitionReader
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader
public class XBeanXmlBeanDefinitionReader
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.
Field Summary |
---|
Fields inherited from class org.springframework.beans.factory.xml.XmlBeanDefinitionReader |
---|
VALIDATION_AUTO, VALIDATION_DTD, VALIDATION_NONE, VALIDATION_XSD |
Fields inherited from class org.springframework.beans.factory.support.AbstractBeanDefinitionReader |
---|
logger |
Constructor Summary | |
---|---|
XBeanXmlBeanDefinitionReader(SpringApplicationContext applicationContext,
org.springframework.beans.factory.support.BeanDefinitionRegistry beanFactory,
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 | |
---|---|
protected org.springframework.beans.factory.xml.NamespaceHandlerResolver |
createDefaultNamespaceHandlerResolver()
|
org.springframework.context.ApplicationContext |
getApplicationContext()
Gets the application context for which the bean definitons will be loaded. |
int |
registerBeanDefinitions(Document doc,
org.springframework.core.io.Resource resource)
|
Methods inherited from class org.springframework.beans.factory.xml.XmlBeanDefinitionReader |
---|
createBeanDefinitionDocumentReader, createReaderContext, detectValidationMode, doLoadBeanDefinitions, loadBeanDefinitions, loadBeanDefinitions, loadBeanDefinitions, loadBeanDefinitions, setDocumentLoader, setDocumentReaderClass, setEntityResolver, setErrorHandler, setEventListener, setNamespaceAware, setNamespaceHandlerResolver, setParserClass, setProblemReporter, setSourceExtractor, setValidating, setValidationMode, setValidationModeName |
Methods inherited from class org.springframework.beans.factory.support.AbstractBeanDefinitionReader |
---|
getBeanClassLoader, getBeanFactory, getBeanNameGenerator, getResourceLoader, loadBeanDefinitions, loadBeanDefinitions, loadBeanDefinitions, setBeanClassLoader, setBeanNameGenerator, setResourceLoader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XBeanXmlBeanDefinitionReader(SpringApplicationContext applicationContext, org.springframework.beans.factory.support.BeanDefinitionRegistry beanFactory, List xmlPreprocessors)
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 processingMethod Detail |
---|
public org.springframework.context.ApplicationContext getApplicationContext()
public int registerBeanDefinitions(Document doc, org.springframework.core.io.Resource resource) throws org.springframework.beans.BeansException
registerBeanDefinitions
in class org.springframework.beans.factory.xml.XmlBeanDefinitionReader
org.springframework.beans.BeansException
protected org.springframework.beans.factory.xml.NamespaceHandlerResolver createDefaultNamespaceHandlerResolver()
createDefaultNamespaceHandlerResolver
in class org.springframework.beans.factory.xml.XmlBeanDefinitionReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |