Introduction to Spring BeanFactory
by, 07-07-2012 at 06:35 PM (1102 Views)
Factory design implementation is the beanís factory. This class has a responsibility is creation or dispension of the beans. Bean factory is basically the general purpose sort of factory. Application objects are instantiated and delivered by the bean factory. Bean factory is aware of various objects present in application. Associations are created b/w the collaborated objects when they are instantiated or configuration burden is being removed from the bean. This also has a vital role in bean life cycle making calls to the destruction methods or custom initialization, in case such methods have been defined properly.
- org.springframework.beans.factory.xml.XmlBeanFacto ry is most commonly used implementation of the beanfactory. Bean based definition is loaded present in xml files.
- For creation of the XmlBeanFactory pass org.springframework.core.io.Resource.