Spring Getting Started 12 - ApplicationContext Interface

xiaoxiao2021-03-06  21

Getting Started 12 - ApplicationContext Interface

In Spring, BeanFactory provides a comparison of the API hierarchy, just like Beanutil, it feels like a framework hierarchy, provides an interface for application framework: ApplicationContext. Org.springframework.context.ApplicationContext inherits from multiple interfaces: ApplicationEventpublisher, HierarchicalBeanFactory, ListableBeanFactory, Messagesource, ResourceLoader, where ListableBeanFactory inherits from BeanFactory. So in addition to BeanFactory features, ApplicationContext provides the following features: * message analysis: INTERNATIONALIZATION: Inherits the functionality from the Messagesource interface. * Load file resources: Inherited from ResourceLoader. * Publish Events: Provided by registering events. Related topics will later introduce, first look at the ApplicationContext interface in which the picture below understands the inheritance relationship:

转载请注明原文地址:https://www.9cbs.com/read-60890.html

New Post(0)