Class XmlBeanDefinitionReader

java.lang.Object
org.springframework.beans.factory.support.AbstractBeanDefinitionReader
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
All Implemented Interfaces:
BeanDefinitionReader, EnvironmentCapable

public class XmlBeanDefinitionReader extends AbstractBeanDefinitionReader
Bean definition reader for XML bean definitions. Delegates the actual XML document reading to an implementation of the BeanDefinitionDocumentReader interface.

Typically applied to a DefaultListableBeanFactory or a GenericApplicationContext.

This class loads a DOM document and applies the BeanDefinitionDocumentReader to it. The document reader will register each bean definition with the given bean factory, talking to the latter's implementation of the BeanDefinitionRegistry interface.

Since:
26.11.2003
Author:
Juergen Hoeller, Rob Harrop, Chris Beams, Sam Brannen
See Also:
  • Field Details

    • VALIDATION_NONE

      public static final int VALIDATION_NONE
      Indicates that the validation should be disabled.
      See Also:
    • VALIDATION_AUTO

      public static final int VALIDATION_AUTO
      Indicates that the validation mode should be detected automatically.
      See Also:
    • VALIDATION_DTD

      public static final int VALIDATION_DTD
      Indicates that DTD validation should be used.
      See Also:
    • VALIDATION_XSD

      public static final int VALIDATION_XSD
      Indicates that XSD validation should be used.
      See Also:
  • Constructor Details

    • XmlBeanDefinitionReader

      public XmlBeanDefinitionReader(BeanDefinitionRegistry registry)
      Create new XmlBeanDefinitionReader for the given bean factory.
      Parameters:
      registry - the BeanFactory to load bean definitions into, in the form of a BeanDefinitionRegistry
  • Method Details