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

[jsr339-experts] Re: A Feature interface

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Tue, 28 Jun 2011 10:26:35 -0700 (PDT)

On 06/28/2011 01:28 PM, Bill Burke wrote:
> On 6/27/11 8:22 AM, Marek Potociar wrote:
>
>> // All communication on this client is audited by default
>> client.register(AuditingFilter.class);
>>
>
> By class isn't good enough as the filter may be a singleton that is initialized.
>
>

That was just for the sake of the example. Obviously the current API has also the register(Object) method for singleton
providers. We would support singleton providers too, of course.

Marek