<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>All,</p>
<p><br>
</p>
<p>I was just thinking about alternatives and producer methods. &nbsp;Suppose I have the following bean:</p>
<p><br>
</p>
<p></p>
<div>@ApplicationScoped</div>
<div>public class Boop {</div>
<div><br>
</div>
<div>&nbsp; &nbsp; @Produces</div>
<div>&nbsp; &nbsp; @ApplicationScoped</div>
<div>&nbsp; &nbsp; public Simpler makeSimpler() {</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; return new Simpler(&quot;Boop&quot;);</div>
<div>&nbsp; &nbsp; }</div>
<div>}</div>
<p></p>
<p><br>
</p>
<p>If I want to override the producer method, I need to declare fully:</p>
<p><br>
</p>
<p></p>
<div>@Alternative</div>
<div>@Priority(100)</div>
<div>@ApplicationScoped</div>
<div>public class BoopAlternative extends Boop{</div>
<div>&nbsp; &nbsp; @Override</div>
<div>&nbsp; &nbsp; @Produces</div>
<div><span style="font-size: 12pt;">&nbsp; &nbsp; public Simpler makeSimpler() {</span><br>
</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; return new Simpler(&quot;Boop2&quot;);</div>
<div>&nbsp; &nbsp; }</div>
<div>}</div>
<div><br>
</div>
<div>For some reason, scopes are inherited, but the produces annotation is not. &nbsp;At least in the case of a producer method, it seems like it would be useful for @Produces to be inherited as well.</div>
<div><br>
</div>
<div>John</div>
<div><br>
</div>
<p></p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
</div>
</div>
</div>
<hr>
NOTICE: This e-mail message and any attachments may contain confidential, proprietary, and/or privileged information which should be treated accordingly. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this
 message, and destroy all physical and electronic copies. Thank you.
</body>
</html>