This content has been marked as final.
Show 3 replies
-
1. Re: multiple @Produces for same return type
dan.j.allen May 6, 2009 1:03 AM (in response to gonorrhea)You'll get an error at startup. That's the whole point of Web Beans. It is deterministic.
-
2. Re: multiple @Produces for same return type
gonorrhea May 6, 2009 1:09 AM (in response to gonorrhea)aha, so similar to what happens in a Seam app when you have more than one Seam component annotated with @Name("foo")
-
3. Re: multiple @Produces for same return type
nickarls May 6, 2009 9:22 AM (in response to gonorrhea)Yep. You can get some overlapping by using deployment types but even then there is an enabled order in configuration.
The
everything is a Bean
does have some implications in inheritance when you have a class Foo that extends Bar that extends Tar and inject for API type Tar and get hit with ambiguous resolves.