Thursday, June 28, 2007

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.

3 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 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

 

Disclaimer
Interview Questions On Java,Java EE Copyright © 2012