-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
3.0.0.Alpha17
-
None
-
None
Adding this code in extension doesn't create a MetricRegistry bean
public void addMetricRegistryAnnotatedType(@Observes AfterTypeDiscovery atd) { atd.addAnnotatedType(MetricRegistry.class.getName(),MetricRegistry.class) .add(ApplicationScoped.Literal.INSTANCE); }
Same if done in BeforeBeanDiscovery observer
Of course doing it the old way works
public void addMetricRegistryAnnotatedType(@Observes AfterTypeDiscovery atd, BeanManager bm) { atd.addAnnotatedType(bm.createAnnotatedType(MetricRegistry.class),MetricRegistry.class.getName()); }