1.spring-core概览
spring-core是spring框架的基石,它为spring框架提供了基础的支持。
spring-core从源码上看,分为6个package,分别是asm,cglib,core,lang,objenesis和util。
1.1 asm
关于asm的内幕参见博客:
spring源码分析之spring-core asm概述
1.2 cglib
关于cglib的内幕参见博客
cglib源码分析–转
1.3 core
1.4 lang
四个注解接口
/**
* Indicates that the annotated element uses the Http Server available in
* {@code com.sun.*} classes, which is only available on a Sun/Oracle JVM.
*
* @author Stephane Nicoll
* @since 4.1
*/
@Retention(RetentionPolicy.CLASS)
@Target({
ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE})
@Documented
public @interface UsesSunHttpServer {
}
/**
* Indicates that the annotated element uses Java 7 specific API constructs,
* without implying that it strictly requires Java 7.
*
* @author Stephane Nicoll
* @since 4.1
*/
@Retention(RetentionPolicy.CLASS)
@Target({
ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE})
@Documented
@Deprecated
public @interface UsesJava7 {
}
/**
* Indicates that the annotated element uses Java 8 specific API constructs,
* without implying that it strictly requires Java 8.
*
* @author Stephane Nicoll
* @since 4.1
*/