<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    You still have to have different jars as how would Wildfly9Impl and
    Wildfly10Impl compile?  Again, the type parameters used in Wildfly9
    don't exist in 10.  The ones used in 10 don't exist in 9.<br>
    <br>
    <div class="moz-cite-prefix">On 1/21/2016 2:19 PM, Stian Thorgersen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJgngAebEDj2iJKqnGRO44uuz0fOH+12-9dBYCFxzS9Tcxu3Tg@mail.gmail.com"
      type="cite">
      <div dir="ltr"><font face="arial, helvetica, sans-serif">What I
          mean is:</font>
        <div><font face="arial, helvetica, sans-serif"><br>
          </font></div>
        <div><font color="#333333" face="monospace, monospace"><span
              style="line-height:20px">if
              (TheProblemClass.class.getMethod("..").getParameterTypes()[0].equals(SomeObject.class))
              {</span></font></div>
        <div><font color="#333333" face="monospace, monospace"><span
              style="line-height:20px">  return new WildFly9Impl();</span></font></div>
        <div><font color="#333333" face="monospace, monospace"><span
              style="line-height:20px">} else {</span></font></div>
        <div><font color="#333333" face="monospace, monospace"><span
              style="line-height:20px">  return new WildFly10Impl();</span></font></div>
        <div><font color="#333333" face="monospace, monospace"><span
              style="line-height:20px">}</span></font></div>
        <div><font color="#333333" face="arial, helvetica, sans-serif"><span
              style="line-height:20px"><br>
            </span></font></div>
        <div><font color="#333333" face="arial, helvetica, sans-serif"><span
              style="line-height:20px">Is that not simpler and easier
              for users than creating a whole new adapter dist?</span></font></div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On 21 January 2016 at 20:11, Bill
            Burke <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"><span class=""> <br>
                  <br>
                  <div>On 1/21/2016 1:43 PM, Stian Thorgersen wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr"><br>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">On 21 January 2016 at
                          18:31, Bill Burke <span dir="ltr">&lt;<a
                              moz-do-not-send="true"
                              href="mailto:bburke@redhat.com"
                              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bburke@redhat.com">bburke@redhat.com</a></a>&gt;</span>
                          wrote:<br>
                          <blockquote class="gmail_quote"
                            style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I
                            need to create a separate adapter distro for
                            Wildfly 10 as it is not<br>
                            compatible with Wildfly 8 and 9.  To do
                            this, I need an explanation of<br>
                            the distribution directory for adapters<br>
                          </blockquote>
                          <div><br>
                          </div>
                          <div>Would it not be cleaner to incorporate
                            something in the adapter that uses different
                            classes depending on the undertow version?</div>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                  <br>
                </span> No idea what  you mean.  The undertow
                class/method in question has a different signature
                between 8-9 and 10.  The method call has parameters
                whose types don't exist in one or the other's versions. 
                Basically I'll be creating a wildfly10-adapter-spi and
                wildfly9-adapter-spi jar that each have one class in
                them.  These modules are included in the adapter-spi
                module.  I just don't see any way around that.<span
                  class=""><br>
                  <br>
                  <pre cols="72">-- 
Bill Burke
JBoss, a division of Red Hat
<a moz-do-not-send="true" href="http://bill.burkecentral.com" target="_blank">http://bill.burkecentral.com</a></pre>
                </span></div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Bill Burke
JBoss, a division of Red Hat
<a class="moz-txt-link-freetext" href="http://bill.burkecentral.com">http://bill.burkecentral.com</a></pre>
  </body>
</html>