users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Are Configurable interface getters needed ?

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Fri, 28 Sep 2012 21:20:15 +0100

Hi
On 28/09/12 19:01, Marek Potociar wrote:
> It would be good if we all knew which getters in particular are we talking about. Can you provide a list?
>
> In general, getters are there to provide a way for features to be able to selectively choose to get enabled or not based on an existing configuration state.
>
getProviderClasses
getProviderInstances
getFeatures
getProperties

Well, if the idea that the feature can make some decision based on the
info exposed by either of the above method then so be it...But may be
you can see some of the above methods being redundant

Not a big issue...

Cheers, Sergey


> Marek
>
>
> On Sep 26, 2012, at 2:59 PM, Sergey Beryozkin<sberyozkin_at_talend.com> wrote:
>
>> Hi,
>>
>> while experimenting with DynamicFeature, I found an internal Configurable implementation having a number of getters (getProviderClasses, etc) not implemented because it was not really needed.
>>
>> My understanding Configurable is what an implementer of a given feature/etc sees and updates. The question is, are the getters currently available on the interface really needed ? Just wonder if we can simplify this interface a bit...
>>
>> Sergey
>