<div dir="ltr">Hey all,<div><br></div><div>I&#39;ve a question regarding specializing qualified producer methods. It would be great to get your opinion on this.</div><div><br></div><div>Imaging this producer method:</div><div><br></div><div><font face="monospace, monospace">  public class MyProducer {</font></div><div><font face="monospace, monospace">    @Produces</font></div><div><font face="monospace, monospace">    @MyQualifier</font></div><div><font face="monospace, monospace">    public Something produce() {</font></div><div><font face="monospace, monospace">      // ...</font></div><div><font face="monospace, monospace">    }</font></div><div><font face="monospace, monospace">  }</font></div><div><br></div><div>Now imagine the producer method is specialized like this:</div><div><br></div><font face="monospace, monospace">  public class MyExtendedProducer extends MyProducer {<br>    @Override<br></font><span style="font-family:monospace,monospace">    @Produces</span><br style="font-family:monospace,monospace"><font face="monospace, monospace">    @Specializes<br>    public Something produce() {<br>      // ...<br>    }<br>  }</font><div><br></div><div>Please not that I NOT added <font face="monospace, monospace">@MyQualifier</font> to the specializing producer method.</div><div><br></div><div>Now for this injection point:</div><div><br></div><div><font face="monospace, monospace">  @Inject</font></div><div><font face="monospace, monospace">  @MyQualifier</font></div><div><font face="monospace, monospace">  private Something something;</font></div><div><br></div><div>What is expected to happen according to the spec? Will the specialized producer be used or not?</div><div><br></div><div>Thanks</div><div><br></div><div>Christian</div><div><br></div><div><div><br></div>-- <br><div class="gmail_signature"><div>Christian Kaltepoth</div><div>Blog: <a href="http://blog.kaltepoth.de/" target="_blank">http://blog.kaltepoth.de/</a></div><div>Twitter: <a href="http://twitter.com/chkal" target="_blank">http://twitter.com/chkal</a></div><div>GitHub: <a href="https://github.com/chkal" target="_blank">https://github.com/chkal</a></div><div><br></div></div>
</div></div>