[keycloak-dev] need explanation of distribution for adapters

Stian Thorgersen sthorger at redhat.com
Thu Jan 21 14:19:04 EST 2016


What I mean is:

if
(TheProblemClass.class.getMethod("..").getParameterTypes()[0].equals(SomeObject.class))
{
  return new WildFly9Impl();
} else {
  return new WildFly10Impl();
}

Is that not simpler and easier for users than creating a whole new adapter
dist?

On 21 January 2016 at 20:11, Bill Burke <bburke at redhat.com> wrote:

>
>
> On 1/21/2016 1:43 PM, Stian Thorgersen wrote:
>
>
>
> On 21 January 2016 at 18:31, Bill Burke <bburke at redhat.com> wrote:
>
>> I need to create a separate adapter distro for Wildfly 10 as it is not
>> compatible with Wildfly 8 and 9.  To do this, I need an explanation of
>> the distribution directory for adapters
>>
>
> Would it not be cleaner to incorporate something in the adapter that uses
> different classes depending on the undertow version?
>
>
> 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.
>
> --
> Bill Burke
> JBoss, a division of Red Hathttp://bill.burkecentral.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20160121/9ea84d4e/attachment.html 


More information about the keycloak-dev mailing list