What are the differences between Bean Factory and Application Context?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Feb 22, 2018

 

The differences between Bean Factory and Application Context are as follows:
  • Bean Factory is an interface defined in org.springframework.beansfactory.BeanFactory, while Application Context is an interface defined, is org.springframework.context.ApplicationContext
  • While the former uses lazy initialization the latter uses aggressive initialization
  • While the former explicitly provide for resource object using the syntax the latter creates and manages resource objects on its own
  • The former doesn’t support internationalization while the latter does.
  • The former doesn’t support annotation-based dependency while the latter does.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Spring interview questions

    What are the features/ characteristics of spring?

    The important features of spring are as follows:Lightweight: Considering transparency and size, spring is lightweight..

    Spring interview questions

    How many types of modules are there in spring? Name them.

    There are around twenty modules, which can be categorized into Core Container, Web, Data Access or Integration, Aspect ..

    Spring interview questions

    What do you mean by Spring Java Based Configuration?

    Spring configuration files are XML files. These files contain the information of classes and describe how these classes..