This content has been marked as final.
Show 2 replies
-
1. Re: Factory pattern and Producer methods
gavin.king Jan 6, 2010 6:40 AM (in response to hirowla.ian.rowlands.three.com.au)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
-
2. Re: Factory pattern and Producer methods
hirowla.ian.rowlands.three.com.au Jan 6, 2010 7:06 AM (in response to hirowla.ian.rowlands.three.com.au)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.