在Guice中将带有注释的班级绑定

时间:2019-06-07 02:13:37

标签: java guice inject sisu

我想基于Guice中的注释参数绑定bean。

@Inject
@RegistryType(type=APPLICATION)
//type can be APPLICATION, BASE, VENDOR.
private MetricRegistry registry;

有人可以建议我如何实现吗?

谢谢

0 个答案:

没有答案
相关问题