整体架构
引用
build
beans 目录:
Support package for beans-style handling of Java 5 annotations.
主要存放AnnotationBeanUtils
该类主要是通过javaBean 风格处理注释的一般方法
- factory
实现Spring轻量级Inversion of Control(IoC)容器的核心包。
1. annotation
Spring IOC的注解,以及注解的一些支持类,
IOC 核心注解:Autowired,Configurable,
Lookup(对一个方法进行注入,注入源可以来源于方法,例如在getCar() 方法上注入,可通过getCar 来获取对象信息),
Qualifier(自动装配时,此注释可用于字段或参数,作为候选bean的限定符。 它也可能用于注释其他自定义注释,然后可以将其用作限定符。例如有两个相同的实现类实现同一个接口,如果用autowired 编译时会报错,此时需要通过Qualifier指明注入哪一个实现类),
Required,Value
2. config
3. groovy
4. parsing
5. serviceloader
6. support
7. wiring
7. xml
重要类解析