[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 382
  • Last Modified:

could you explain the difference between beanfactory and applicationcontext

could you explain the difference between beanfactory and applicationcontext
0
Manikandan Thiagarajan
Asked:
Manikandan Thiagarajan
  • 2
1 Solution
 
for_yanCommented:

Application context has more functions - BeanFactory is only
part of functionality of ApplicationContext for creating Beans:

Not all functions of ApplicationsContext are very easy to understand,
but you can read more on each of the items:
see here:
http://stackoverflow.com/questions/243385/new-to-spring-beanfactory-vs-applicationcontext


Bean Factory

    Bean instantiation/wiring

Application Context

    Bean instantiation/wiring
    Automatic BeanPostProcessor registration
    Automatic BeanFactoryPostProcessor registration
    Convenient MessageSource access (for i18n)
    ApplicationEvent publication

So if you need any of the points presented on the Application Context side (other than BeanFactory), you should use ApplicationContext.

You can alos read here
http://static.springsource.org/spring/docs/2.5.x/reference/beans.html#context-introduction-ctx-vs-beanfactory
and here:
http://www.developersbook.com/spring/interview-questions/spring-interview-questions-faqs.php




0
 
for_yanCommented:
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now