《一线大厂Java面试题解析+核心总结学习笔记+最新讲解视频+实战项目源码》,点击传送门,即可获取!
*/
public static final int DEPENDENCY_CHECK_ALL = 3;
/**
-
Constant that indicates the container should attempt to infer the
-
{@link #setDestroyMethodName destroy method name} for a bean as opposed to
-
explicit specification of a method name. The value {@value} is specifically
-
designed to include characters otherwise illegal in a method name, ensuring
-
no possibility of collisions with legitimately named methods having the same
-
name.
-
Currently, the method names detected during destroy method inference
-
are “close” and “shutdown”, if present on the specific bean class.
*/
public static final String INFER_METHOD = “(inferred)”;
@Nullable
private volatile Object beanClass;
//bean的作用范围
@Nullable
private String scope = SCOPE_DEFAULT;
//bean是不是一个抽象bean,对应属性abstract
private boolean abstractFlag = false;
//bean是不是延迟加载,对应属性lazy-init
@Nullable
private Boolean lazyInit;
//bean的自动注入模式,对应autowire
private int autowireMode = AUTOWIRE_NO;
//依赖进行检查(3.0放弃了该功能)
private int dependencyCheck = DEPENDENCY_CHECK_NONE;
//实例化该bean是否需要先实例化其他一些bean,对应bean的depend-on属性
@Nullable
private String[] dependsOn;
//该bean是否考虑被当为候选bean,只有被当为候选bean,才能被注入
private bo