jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: [jax-rs-spec users] Question about DynamicFeature

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Tue, 25 Sep 2012 09:12:40 -0700

It just means that any name-bound filters bound via dynamic features will be bound to that method regardless of whether the method contains the proper name bindings or not.

Marek

On Sep 24, 2012, at 10:25 AM, Sergey Beryozkin <sberyozkin_at_talend.com> wrote:

> Hi
>
> I'd like to ask for a clarification re DynamicFeature, the docs say:
>
> "Dynamic feature provider is used by JAX-RS runtime to register providers that shall be applied to a particular resource class and method and overrides any annotation-based binding definitions defined on the returned resource filter or interceptor instance. "
>
> I'm confused by "...overrides any annotation-based binding definitions defined on the returned resource filter or interceptor instance."
>
> The feature dynamically adds providers (filters, interceptors). What exactly the 'overrides' refers to ?
>
> Thanks, Sergey