1011121314151617
public class RegisterComponentsExtension implements Extension { public void beforeBeanDiscovey(@Observes BeforeBeanDiscovery discovery, BeanManager bm) { CDIRegistry registry = new CDIRegistry(discovery, bm); registry.configure(); } }