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

[jsr339-experts] Re: [jax-rs-spec users] Re: Re: can you _at_Context inject Configurable or Configuration?

From: Bill Burke <bburke_at_redhat.com>
Date: Thu, 21 Feb 2013 09:10:02 -0500

On 2/20/2013 12:13 PM, Marek Potociar wrote:
>
> On Feb 20, 2013, at 4:04 PM, Bill Burke <bburke_at_redhat.com> wrote:
>
>>
>>
>> On 2/20/2013 8:37 AM, Marek Potociar wrote:
>>>
>>> On Feb 19, 2013, at 3:12 PM, Bill Burke <bburke_at_redhat.com> wrote:
>>>
>>>>
>>>>
>>>> On 2/19/2013 8:48 AM, Marek Potociar wrote:
>>>>>
>>>>> On Feb 19, 2013, at 2:39 PM, Bill Burke <bburke_at_redhat.com
>>>>> <mailto:bburke_at_redhat.com>> wrote:
>>>>>
>>>>>> I'm writing a sub-chapter on component registration and came across a
>>>>>> problem. Is there any way of leveraging scanning so we can build a
>>>>>> Client from scanned components? Would this work server side?
>>>>>>
>>>>>> @Context Configurable configurable;
>>>>>
>>>>> Should the above be Configuration? Configuration can be injected into
>>>>> server side components (providers/resources).
>>>>>
>>>>
>>>> Can you inject Configurable as well? Just wondering...
>>>
>>> No, why would you want that? Once app is deployed config should not be mutable. Mutability would open the whole can of worms.
>>>
>>
>> To add filters and interceptors with a specific priority.
>
> Feature and DynamicFeature are here for that use case.
>

That makes sense.

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