The answer is yes. I think 4.3.1 explains this rather clearly:<div><br></div><div>Formally, a bean X is said to specialize another bean Y if either:</div><div><div><ul><li>X directly specializes Y, or</li><li>a bean Z exists, such that X directly specializes Z and Z specializes Y.</li>
</ul></div><div>There isn&#39;t a crystal clear example of #2 in this section (it&#39;s implied by references to types in previous examples).</div><div><br></div><div>In your case X = Jsf2CodiConfig, Z = Jsf1CodiConfig and Y = CodiConfig</div>
<div><br></div><div>X wins.</div><div><br></div><div>-Dan</div><br><div class="gmail_quote">On Thu, Nov 25, 2010 at 5:51 PM, Mark Struberg <span dir="ltr">&lt;<a href="mailto:struberg@yahoo.de">struberg@yahoo.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi folks!<br>
<br>
I have the following situation and couldn&#39;t find a _clear_ answer to my question (various hints, but as I said: not really clear):<br>
<br>
<br>
class CodiConfig<br>
<br>
@Specializes<br>
class Jsf1CodiConfig extends CodiConfig<br>
<br>
@Specializes<br>
class Jsf2CodiConfig extends Jsf1CodiConfig<br>
<br>
<br>
If I<br>
@Inject CodiConfig cc;<br>
<br>
is it well defined in the spec that I must get Jsf2CodiConfig?<br>
<br>
Imo it should be, but before I &#39;fix&#39; this in OWB, I need an ok that this transitive behaviour is conform with the spec. And of course that Weld is behaving in the same way ;)<br>
<br>
txs and LieGrue,<br>
strub<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
weld-dev mailing list<br>
<a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div>Dan Allen</div>Principal Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br>
<a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br><a href="http://www.google.com/profiles/dan.j.allen" target="_blank">http://www.google.com/profiles/dan.j.allen</a><br>

</div>