Hi Christian,
DynamicFeature is a server-side type used by containers (see its package). In that context, @Provider and class scanning are available. Feature can be used on the client side (core package) where registration is manual.
— Santiago
> On Apr 8, 2017, at 7:47 AM, Christian Kaltepoth <christian_at_kaltepoth.de> wrote:
>
> Hey all,
>
> I've a question. The javadocs of DynamicFeature state this:
>
> Providers implementing this interface MAY be annotated with @Provider annotation in order to be discovered by JAX-RS runtime when scanning for resources and providers.
>
> The javadocs of the Feature interface doesn't mention anything like this.
>
> Is this intended? It looks weird to me that DynamicFeature supports discovery via @Provider but Feature doesn't.
>
> Thanks
>
> Christian
>
>
> --
> Christian Kaltepoth
> Blog: http://blog.kaltepoth.de/ <http://blog.kaltepoth.de/>
> Twitter: http://twitter.com/chkal <http://twitter.com/chkal>
> GitHub: https://github.com/chkal <https://github.com/chkal>
>