<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Solder also has a @Requires annotation which you might find useful -
    it allows you to specify a class name, and if that class is found on
    the classpath then that bean will be installed.<br>
    <br>
    On 03/03/11 22:00, Jos&eacute; Rodolfo Carrijo de Freitas wrote:
    <blockquote
      cite="mid:000b01cbd99a$99de3a20$cd9aae60$@freitas@softplan.com.br"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EstiloDeEmail17
        {mso-style-type:personal-compose;
        font-family:"Arial","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:1919054041;
        mso-list-template-ids:10509818;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
      <div class="Section1">
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Times New Roman&quot;,&quot;serif&quot;; color:
            black;">Morning guys,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Times New Roman&quot;,&quot;serif&quot;; color:
            black;"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Times New Roman&quot;,&quot;serif&quot;; color:
            black;" lang="EN-US">I&#8217;m working at the issue <a
              moz-do-not-send="true"
              href="https://issues.jboss.org/browse/SEAMINTL-27">https://issues.jboss.org/browse/SEAMINTL-27</a>
            and the problem here is caused by an optional dependency.<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Courier New&quot;; color: blue;
            background: none repeat scroll 0% 0% white;" lang="EN-US">&lt;</span><span
            style="font-size: 10pt; font-family: &quot;Courier
            New&quot;; color: rgb(163, 21, 21); background: none repeat
            scroll 0% 0% white;" lang="EN-US">dependency</span><span
            style="font-size: 10pt; font-family: &quot;Courier
            New&quot;; color: blue; background: none repeat scroll 0% 0%
            white;" lang="EN-US">&gt;</span><span style="font-size:
            10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-left: 35.4pt; text-indent:
          0.6pt;"><span style="font-size: 10pt; font-family:
            &quot;Courier New&quot;; color: blue; background: none
            repeat scroll 0% 0% white;" lang="EN-US">&lt;</span><span
            style="font-size: 10pt; font-family: &quot;Courier
            New&quot;; color: rgb(163, 21, 21); background: none repeat
            scroll 0% 0% white;" lang="EN-US">groupId</span><span
            style="font-size: 10pt; font-family: &quot;Courier
            New&quot;; color: blue; background: none repeat scroll 0% 0%
            white;" lang="EN-US">&gt;</span><span style="font-size:
            10pt; font-family: &quot;Courier New&quot;; color: black;
            background: none repeat scroll 0% 0% white;" lang="EN-US">joda-time</span><span
            style="font-size: 10pt; font-family: &quot;Courier
            New&quot;; color: blue; background: none repeat scroll 0% 0%
            white;" lang="EN-US">&lt;/</span><span style="font-size:
            10pt; font-family: &quot;Courier New&quot;; color: rgb(163,
            21, 21); background: none repeat scroll 0% 0% white;"
            lang="EN-US">groupId</span><span style="font-size: 10pt;
            font-family: &quot;Courier New&quot;; color: blue;
            background: none repeat scroll 0% 0% white;" lang="EN-US">&gt;<br>
            &lt;</span><span style="font-size: 10pt; font-family:
            &quot;Courier New&quot;; color: rgb(163, 21, 21);
            background: none repeat scroll 0% 0% white;" lang="EN-US">artifactId</span><span
            style="font-size: 10pt; font-family: &quot;Courier
            New&quot;; color: blue; background: none repeat scroll 0% 0%
            white;" lang="EN-US">&gt;</span><span style="font-size:
            10pt; font-family: &quot;Courier New&quot;; color: black;
            background: none repeat scroll 0% 0% white;" lang="EN-US">joda-time</span><span
            style="font-size: 10pt; font-family: &quot;Courier
            New&quot;; color: blue; background: none repeat scroll 0% 0%
            white;" lang="EN-US">&lt;/</span><span style="font-size:
            10pt; font-family: &quot;Courier New&quot;; color: rgb(163,
            21, 21); background: none repeat scroll 0% 0% white;"
            lang="EN-US">artifactId</span><span style="font-size: 10pt;
            font-family: &quot;Courier New&quot;; color: blue;
            background: none repeat scroll 0% 0% white;" lang="EN-US">&gt;</span><span
            style="font-size: 10pt; font-family: &quot;Courier
            New&quot;;" lang="EN-US"><br>
            <span style="color: blue; background: none repeat scroll 0%
              0% white;">&lt;</span><span style="color: rgb(163, 21,
              21); background: none repeat scroll 0% 0% white;">optional</span><span
              style="color: blue; background: none repeat scroll 0% 0%
              white;">&gt;</span><span style="color: black; background:
              none repeat scroll 0% 0% white;">true</span><span
              style="color: blue; background: none repeat scroll 0% 0%
              white;">&lt;/</span><span style="color: rgb(163, 21, 21);
              background: none repeat scroll 0% 0% white;">optional</span><span
              style="color: blue; background: none repeat scroll 0% 0%
              white;">&gt;</span><o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Courier New&quot;; color: blue;
            background: none repeat scroll 0% 0% white;" lang="EN-US">&lt;/</span><span
            style="font-size: 10pt; font-family: &quot;Courier
            New&quot;; color: rgb(163, 21, 21); background: none repeat
            scroll 0% 0% white;" lang="EN-US">dependency</span><span
            style="font-size: 10pt; font-family: &quot;Courier
            New&quot;; color: blue; background: none repeat scroll 0% 0%
            white;" lang="EN-US">&gt;<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Times New Roman&quot;,&quot;serif&quot;; color:
            black;" lang="EN-US">So, I was talking with ken, and
            there&acute;re two suggested approaches:<o:p></o:p></span></p>
        <ol start="1" type="1">
          <li class="MsoNormal" style=""><span style="font-size: 12pt;
              font-family: &quot;Times New
              Roman&quot;,&quot;serif&quot;;" lang="EN-US">Mark the
              implementation classes that use joda-time with @Veto and
              require the developer to override that setting through XML
              Config if they want to use them<o:p></o:p></span></li>
          <li class="MsoNormal" style=""><span style="font-size: 12pt;
              font-family: &quot;Times New
              Roman&quot;,&quot;serif&quot;;" lang="EN-US">Mark the set
              of JDK dateTime and joda-time classes as two Alternative
              options and require the developer to specify which one to
              use.<o:p></o:p></span></li>
        </ol>
        <p class="MsoNormal" style=""><span style="font-size: 12pt;
            font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"
            lang="EN-US">What option
            do you think is the better approach? Do you have any other
            idea?<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 12pt;
            font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"
            lang="EN-US">Either
            way we require the developer to say what he wants to use,
            This could be useful
            in some situations, but I guess that most of times, people
            just want to use the
            feature regarding what seam uses in its back.<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 12pt;
            font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"
            lang="EN-US">What do
            you think?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
seam-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/seam-dev">https://lists.jboss.org/mailman/listinfo/seam-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>