could you explain the difference between beanfactory and applicationcontext

Posted on 2011-10-19
Last Modified: 2013-11-11
could you explain the difference between beanfactory and applicationcontext
Question by:stmani2005
    LVL 47

    Accepted Solution


    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:

    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
    and here:

    LVL 47

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Suggested Solutions

    I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    The viewer will learn how to implement Singleton Design Pattern in Java.
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now