On 01/03/13 15:15, Bill Burke wrote:
> You may want the application's Configuration to initialize a Client.
>
Yes, that is possible, though I thought clients would be mostly injected
on the server,
Cheers, Sergey
> On 3/1/2013 6:03 AM, Sergey Beryozkin wrote:
>> Hi
>>
>> I believe Configuration [1] can be injected as context into resource
>> classes, this is what Marek mentioned in the other thread.
>>
>> I was wondering earlier if injection of Configuration should be limited
>> to injecting only to providers and not make it possible to inject it
>> into resource classes,
>>
>> I'm concerned that none of Configuration instances actually makes sense
>> to the application code.
>>
>> May be the spec text should say about injecting Configuration what it
>> says about Providers, "This interface is expected to be primarily of
>> interest to provider authors wishing to ..." ? By the way, the spec
>> still not mentions Configuration - I would not mind if it did not :-)
>>
>> Thanks, Sergey
>>
>> [1]
>> http://jax-rs-spec.java.net/nonav/2.0-SNAPSHOT/apidocs/javax/ws/rs/core/Configuration.html
>>
>>
>>
>