Difference in Bean Factory and Application Context

Differentiate between Bean Factory and Application Context?

E

Expert

Verified

Basically, an application context is like a bean factory. But application context proposals more.
i.)An Application contexts provide a means for resolving the text messages, with support for i18n of these messages.
ii.) An Application contexts provide a general way to load the file resources, as images.
iii.)An Application contexts can issue events to beans which are registered as the listeners.
iv.)Certain operations on beans in the container, that have to be handled in a programmatic fashion with a bean factory, may be handled declaratively in any application context.
v.) ResourceLoader support: Spring’s Resource interface us a flexible general abstraction for handling the low-level resources. Application context itself is a ResourceLoader, Therefore provides an application with access to deployment-specific Resource instances.
vi.) MessageSource support: application context implements MessageSource, an interface used to acquire localized messages, with an actual implementation being pluggable.

   Related Questions in JAVA Programming

©TutorsGlobe All rights reserved 2022-2023.