Spring编程模型

1.面向对象编程

  • 契约接口:Aware、BeanPostProcessor..
  • 设计模式:观察者模式、组合模式、模板模式..
  • 对象继承:Abstract*类

2.函数驱动

  • 函数接口:ApplicationEventPublisher
  • Reactive:Spring WebFlux

3.模块驱动

  • Maven Artifacts
  • OSGI Bundles
  • Java 9 Automatic Modulas
  • Spring @Enable*

4.面向切面编程

  • 动态代理:JdkDynamicAopProxy
  • 字节码提升:ASM、CGLib、AspectJ...

5.面向元编程

  • 注解:模式注解(@component、@Service、@Respository ....)
  • 配置:Enwironment 抽象、PropertySources、BeanDefinition...
  • 泛型: GenericTypeResolver、HesalvableType ...
posted @ 2020-10-12 12:19  宇枫  阅读(181)  评论(0编辑  收藏  举报