<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Of course I find a better solution after whining and complaing...Its
    still a hack, but, it is portable.<br>
    <br>
    <div class="moz-cite-prefix">On 1/21/2016 2:37 PM, Stian Thorgersen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJgngAfOnxfzW+3waWGc=jtxLeC9g0Kns+r60voN49pcsasnng@mail.gmail.com"
      type="cite">
      <div dir="ltr">True, didn't consider that. We could do it with
        Infinispan because the methods where actually there, just didn't
        work on the old version.<br>
        <div><br>
        </div>
        <div>I can't see any other option then. Sucks to have to
          maintain all this different versions of the adapters.</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 21 January 2016 at 20:27, 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"> 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.
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 1/21/2016 2:19 PM, Stian Thorgersen wrote:<br>
                  </div>
                  <blockquote 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"><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:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            <div bgcolor="#FFFFFF" text="#000000"><span>
                                <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><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 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>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </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>