0
点赞
收藏
分享

微信扫一扫

Spring-基础设施类


目前据我阅读源码所已知的基础设施类有6个,这6个类由​​AnnotatedBeanDefinitionReader
​负责加载,因为基础设施类属于自定义指定包下的类,它们分别是

在容器中的名字:
org.springframework.context.annotation.internalConfigurationAnnotationProcessor
实际的类:
org.springframework.context.annotation.ConfigurationClassPostProcessor

在容器中的名字org.springframework.context.annotation.internalAutowiredAnnotationProcessor,
实际的类
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor

在容器中的名字
org.springframework.context.annotation.internalRequiredAnnotationProcessor,
实际的类org.springframework.beans.factory.annotation.RequiredAnnotationBeanPostProcessor

在容器中的名字org.springframework.context.annotation.internalCommonAnnotationProcessor,
实际的类org.springframework.context.annotation.CommonAnnotationBeanPostProcessor

在容器中的名字org.springframework.context.event.internalEventListenerProcessor,
实际的类
org.springframework.context.event.EventListenerMethodProcessor

在容器中的名字
org.springframework.context.event.internalEventListenerFactory,
实际的类
org.springframework.context.event.DefaultEventListenerFactory

这些基础设施类由​​SpringFactoriesLoader类​​创建其java对象


举报

相关推荐

0 条评论