Q2: what happens if you have an @Alternative Bean<X> but there is no enabled Bean<X>?
No. What I meant is that if you register a custom bean where isAlternative() returns true, the bean must not be enabled unless it is explicitly selected for a bean archive (beans.xml) or for an application (Prioritized in CDI 2). |