What is BeanFactory?
BeanFactory is an interface.
Now we have seen the overview of ApplicationContext , and one more interface is called BeanFactory provided by Spring people for the same purpose .
ApplicationContext does everything which BeanFactory does a some more tasks. In the current Spring release Spring is clearly mentioned that it has been provided BeanFactory just for the backward compatibility .
So unless and until you have a very strong reason to use BeanFactory , we should rely on ApplicationContext to use spring framework.
You may like the following posts:
Injecting Value into a BeanFactory
BeanFactory is an interface.
Now we have seen the overview of ApplicationContext , and one more interface is called BeanFactory provided by Spring people for the same purpose .
ApplicationContext does everything which BeanFactory does a some more tasks. In the current Spring release Spring is clearly mentioned that it has been provided BeanFactory just for the backward compatibility .
So unless and until you have a very strong reason to use BeanFactory , we should rely on ApplicationContext to use spring framework.
You may like the following posts:
Injecting Value into a BeanFactory
No comments:
Post a Comment