This has been discussed before.
If you want to specify that a bean class is not eligible for injection, you have several options:
- annotated it @Alternative, or with an alternative stereotype (call it @Ignore, or whatever)
- veto() the class in a portable extension
- annotated it @Any, or with a qualifier (call it @Ignore, or whatever)
- deploy it in a module with no beans.xml file
I hadn't seen that discussion, so sorry about the repeat. I like the @Ignore annotation and it works. So does @Alternative, but I guess that is vague. Thanks for your help.