Spring includes several applications of Bean factory.
Out of these, org.springframework.beans.factory.xml.XmlBeanFactory is a very important one.
It loads the beans on the basis of the definitions stored in an XML file.
For the creation of an XmlBeanFactory, a java.io.InputStream is passed to the constructor.
The InputStream provides the XML to the factory.
For example, for retrieval of the bean, the getBean() method is called by passing the name of the desired bean.