首页 新闻 会员 周边

java中@Lookup注解是什么意思?

0
悬赏园豆:20 [已关闭问题] 关闭于 2016-12-01 16:28
@Lookup 这个注解代表是什么意思,找了资料没找到,
问题补充:

有人知道么看了下源码里面这样写

public @interface Lookup {

/**
* This annotation attribute may suggest a target bean name to look up.
* If not specified, the target bean will be resolved based on the
* annotated method's return type declaration.
*/
String value() default "";

}

但还是不太明白

 

代码里是这样的运用的

@Lookup
public JSONHandler getJsonHandler() {
return new JSONHandler();
}

clo33tt的主页 clo33tt | 初学一级 | 园豆:13
提问于:2016-05-13 09:50
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册