Monday 14 September 2015

Java Source World: Difference between Bean Factory and Application Context




Difference between Bean Factory and Application Context



Following are some of the differences:

Application contexts provide a means for resolving text messag es, including support for i18n of those messages.

Application contexts provide a generic way to load file resources, such as images.

Application contexts can publish events to beans that are registered as listeners.

Certain operations on the container or beans in the container, which have to be handled in a programmatic fashion with a bean factory, can be handled declaratively in an application context.

The application context implements MessageSource, an interface used to obtain localized messages, with the actual implementation being plug g able.

Read: What are spring beans

No comments:

Post a Comment