<div class="gmail_quote">On Fri, Apr 9, 2010 at 7:44 PM, Stuart Douglas <span dir="ltr">&lt;<a href="mailto:stuart@baileyroberts.com.au">stuart@baileyroberts.com.au</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">After some discussion with <font face="&#39;Lucida Grande&#39;, Geneva, Verdana, Arial, sans-serif">Tihomir I have added an @XmlConfigured annotation to seam-xml. This prevents the bean from being installed, so it is possible to create beans with ambiguous dependencies and allow the user to pick which one they want with XML configuration. </font><div>
<font face="&#39;Lucida Grande&#39;, Geneva, Verdana, Arial, sans-serif"><br></font></div><div><font face="&#39;Lucida Grande&#39;, Geneva, Verdana, Arial, sans-serif">The problem with this is that if you want to use it you now need a compile time dependency on seam-xml just to get one annotation. Should we have a @DoNotInstall (or whatever) annotation in weld-extensions instead, or is a compile time dependency on seam-xml ok? </font></div>
<div><font face="&#39;Lucida Grande&#39;, Geneva, Verdana, Arial, sans-serif"><br></font></div><div><font face="&#39;Lucida Grande&#39;, Geneva, Verdana, Arial, sans-serif">Tihomir has pointed out that @XmlConfigured makes it much clearer what is going on, and tells anyone reading the code to look in beans.xml, and I am inclined to agree with him, but I would like to know what everyone else thinks. </font></div>
<div><font class="Apple-style-span" face="&#39;Lucida Grande&#39;, Geneva, Verdana, Arial, sans-serif"><br></font></div></div></blockquote><div> </div><div>Building on this, I was thinking that we should provide a @Veto annotation in a common module (perhaps Weld extensions), that can be used to prevent a class from being installed. The @Veto annotation would be an @Alternative stereotype. Naturally, this is pretty easy for users to create, but since the need is so common, I would think it makes sense to provide it. WDYT?</div>
<div><br></div><div>-Dan</div><div> </div></div>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br>
<a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br><a href="http://www.google.com/profiles/dan.j.allen">http://www.google.com/profiles/dan.j.allen</a><br>