java吧 关注:1,240,585贴子:12,712,699
  • 0回复贴,共1

spring中的这个类干嘛用的?

取消只看楼主收藏回复

public class AspectEntry implements ParseState.Entry {
private final String id;
private final String ref;
/**
* Create a new {@小宅曦 AspectEntry} instance.
* @param id the id of the aspect element
* @param ref the bean name referenced by this aspect element
*/
public AspectEntry(String id, String ref) {
this.id = id;
this.ref = ref;
}
@Override
public String toString() {
return "Aspect: " + (StringUtils.hasLength(this.id) ? "id='" + this.id + "'" : "ref='" + this.ref + "'");
}
}
读源码时发现这个类,属于AOP相关,用来存储标签的属性值,但这能存不能取啊?别说反射,如果用反射取干嘛不用get方法


1楼2023-09-05 19:09回复