Howdy,
I'm stuck on this...
@Inject @CurrentUser String userId;
class ProductionFactory { @Produces @CurrentUser String getCurrentUserId(){....} }
Can someone explain to me how to provide an alternative to a qualified producer. I can only find Class and Class+Stereotype examples that don't have qualifiers (like @CurrentUser above).
CHEERS :)
@Alternative class AlternativeProductionFactory { @Produces @CurrentUser String getAlternativeCurrentUserId(){....} }
plus enabling the alternative in beans.xml