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