Explain ApplicationContext in Spring framework.

A Spring ApplicationContext is a subinterface of BeanFactory.It is somewhat similar to BeanFactory in terms that both define beans,bind them together and make them available on request.In its functioning and ApplicationContext has following advanced features:

-Resolving Messages, supporting internationalization
-Support for an eventing mechanism, allowing application objects to publish events and they can register to be notified of events optionally.
-Supports generic loading and access of file resources like image files.
-Supports customization of container behavior through automatic recognition of special application-specific or generic, bean definitions.

4 comments :

Anonymous said...

Application Context is not a sub-interface of Bean Factory. It is the reverse, i.e, Bean Factory is the sub-interface of Application COntext.

réda on May 11, 2011 at 5:44 AM said...

+1

org.springframework.context
Interface ApplicationContext

All Superinterfaces:
ApplicationEventPublisher, BeanFactory, HierarchicalBeanFactory, ListableBeanFactory, MessageSource, ResourceLoader, ResourcePatternResolver

Anonymous said...

ApplicationContext IS a sub-interface of BeanFactory since it extends one.

public interface ApplicationContext extends ListableBeanFactory, HierarchicalBeanFactory,
MessageSource, ApplicationEventPublisher, ResourcePatternResolver

rajinder on August 20, 2012 at 9:02 PM said...

ApplicationContext interface extends BeanFactory interface.So ApplicationContext is a sub interface of BeanFactory. you can see here.

 

Disclaimer
Interview Questions On Java,Java EE Copyright © 2018. Reads: best tracker