Header Ads

  • Breaking Now

    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:

    1. 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.

      ReplyDelete
    2. +1

      org.springframework.context
      Interface ApplicationContext

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

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

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

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

      ReplyDelete

    Post Top Ad

    Post Bottom Ad