Spring(七):修饰Bean(自定义标签与属性的解析)

《一线大厂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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值