Hi Stephan
> Hi Sergey,
>> I'm still a bit unclear about it.
>> @Path("/")
>> class Foo {
>> @GET
>> public Bar get(@Context UriInfo) {}
>> @Path("/bar")
>> public Bar sublocator(@Context UriInfo) {}
>> }
>> When injected through get() the list is empty, when injected through sublocator() the list is 1, when will the list be longer ?
> The resource class Bar could also contain sub resource locators.
Yes. But the specification says that only the classes created by the JAXRS runtime (the root classes that is)
can be injected. Is it correct ? If so thenn neitgher Bar not its own sublocators won't have UriInfo injected by the runtime, but
it's up to the root class to propagate it further, in which case UriInfo impl won't be aware it's being accessed in teh scope of a
subresource locator.
Thanks, Sergey
>
> best regards
> Stephan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: users-help_at_jsr311.dev.java.net
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland