| This seems to be some sort of "chicken-egg" problem and in general it's same as the case when developer calls BeforeBeanDsicovery.addStereoType(SomeAnnotation.class) and expects SomeAnnotation to become new bean defining annotation (see https://issues.jboss.org/browse/CDI-701). The problem is that discovery (scanning) process (with standard bean defining annotations) happens before BeforeBeanDiscovery event firing and there is currently no way how to extend the set of bean defining annotations (with newly added scope or stereotype annotation) before this event is fired. |