Previous
BeanFactory and ApplicationContext:
The BeanFactory is the Spring’s bean container which loads and wires bean at the initial time and supply them when requested for. The ApplicationContext is a BeanFactory which does this work.
You can have separate xml files for defining beans or can have a file such as an applicationContext.xml file to define all bean definition. We have used Spring’s Dispatcher Servlet test-servlet.xml as a bean factory which imports all other xml into it during initialization and loads all beans into the ApplicationContext.
The BeanFactory is the Spring’s bean container which loads and wires bean at the initial time and supply them when requested for. The ApplicationContext is a BeanFactory which does this work.
You can have separate xml files for defining beans or can have a file such as an applicationContext.xml file to define all bean definition. We have used Spring’s Dispatcher Servlet test-servlet.xml as a bean factory which imports all other xml into it during initialization and loads all beans into the ApplicationContext.
Next
0 comments:
Post a Comment