Bind bean to annotation

24 views
Skip to first unread message

Agustino Alim

unread,
Jun 8, 2019, 8:46:06 PM6/8/19
to google-guice
Hello all,

I would like to bind bean based on annotation type. How can I achieve that?

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

RegistryType is the annotation provided by specification, so I cannot add @BindingAnnotation.

Please kindly advice

Thanks
Reply all
Reply to author
Forward
0 new messages