users@jax-rs-spec.java.net

[jax-rs-spec users] Re: Using _at_Provider with Feature and DynamicFeature

From: Christian Kaltepoth <christian_at_kaltepoth.de>
Date: Mon, 10 Apr 2017 17:48:08 +0200

Hi Santiago,

thank you very much for your reply.


DynamicFeature is a server-side type used by containers (see its package).
> In that context, @Provider and class scanning are available.
>

That was my understanding too.


Feature can be used on the client side (core package) where registration is
> manual.
>

Sure, they can be used both on the client AND on the server side, correct?

Therefore I was wondering why they doesn't support auto discovery using
@Provider if used on the server side. This would be more consistent with
other providers and DynamicFeature. Even if Feature implementations require
manual registration on the client, why not support it on the server?


Christian



-- 
Christian Kaltepoth
Blog: http://blog.kaltepoth.de/
Twitter: http://twitter.com/chkal
GitHub: https://github.com/chkal