BeanFactory--the past

The BeanFactory container provides the basic functionalities and framework configuration. Nowadays, developers don't prefer using BeanFactory. Now, the obvious question comes to your mind; why is BeanFactory still in the framework? Why has it not been removed? If not BeanFactory, then what's the alternative? Let's answer them one by one. The very simple answer of BeanFactory in the framework is to support the backward compatibility of JDK 1.4. The BeanFactory container provides BeanFactoryAware, InitializingBean, and DisposableBean interfaces to support backward compatibility for a third-party framework that has integration with Spring. It's an interface; don't worry, we don't need to implement it. The framework has already provided the implementation, as discussed in the following sections.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.77.4