On Jan 7, 2009, at 4:09 PM, Paul Sandoz wrote:
>
> On Jan 7, 2009, at 3:55 PM, Gerard M. Davison wrote:
>
>> Paul Sandoz wrote:
>>> On Jan 7, 2009, at 3:22 PM, Gerard M. Davison wrote:
>>>
>>>>
>>>> Paul,
>>>>
>>>> Thanks, that seem reasonable. At least in the case I am looking
>>>> at I need to pass some parameters to the created resource object.
>>>> I guess that the middle two are the most useful in my case.
>>>> (@Resource doesn't appear to be attachable to a method parameter
>>>> otherwise I would quite happily be using that)
>>>>
>>>
>>> Hmm... it should work in conjunction the InjectableProvider you
>>> created and registered. The reason is that all the other injection
>>> support is implemented the same way (e.g. @Context for injection
>>> of ResourceContext in the example in my previous email). If not
>>> then it is a bug i need to fix.
>>
>> Ah this is because of the definition of @Resource and not because
>> of a bug in Jersey. It cannot be attached to method parameters:
>>
>> http://java.sun.com/javase/6/docs/api/javax/annotation/Resource.html
>>
>> So more a bug in JSR 250 than anything else.
>>
>
> Ah! i did realize, thanks for pointing that out.
^
|
Not
Paul.