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

[jsr339-experts] Re: Updated Client API and Interceptors/Filters proposal is available - please review

From: Bill Burke <bburke_at_redhat.com>
Date: Thu, 09 Jun 2011 12:01:28 -0400

On 6/9/11 8:53 AM, Marek Potociar wrote:
>
>
> On 06/06/2011 02:06 PM, Bill Burke wrote:
>>
>>
>> On 6/6/11 7:45 AM, Dionysios G. Synodinos wrote:
>>> - I don't like all the getFeature() methods. Just have a
>>> getProperties() method and be done with it. I don't think I've ever
>>> seen such an API in Java EE before or what you're trying to
>>> accomplish with it.
>>>
>>>
>>> I appreciate simplicity, but semantically "properties" continue to be
>>> quite different to me than "features".
>>>
>>
>> I just don't see a use case for being able to see if a feature is enabled or enabling or disabling a feature at the
>> Invocation level. Can somebody provide one?
>>
>
> How about:
>
> postPersonalData.disableFeature(Features.REQUEST_LOGGING);
>

You wouldn't do this at runtime.


-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com