I think this is possible only when @Specializes is used. If you have disabled @Alternative (PBA is not fired) then I cannot see any way how to explicitly enable it via lifecycle events. Another case is of course when you have enabled bean already and you start to play with types, isAlternative, etc. Anyway I think it would be great if we can concentrate these discussions at one place - CDI-581 is good candidate IMHO.
|