users@jersey.java.net

[Jersey] Re: _at_ParentRef in a CDI/glassfish environment

From: John Lister <john.lister_at_kickstone.com>
Date: Mon, 27 Aug 2012 08:08:16 +0100

On 26/08/2012 22:12, Christopher Piggott wrote:
> @ParentRef in a CDI/glassfish/weld environment doesn't seem to return
> anything useful. The real object I want to get to is an
> AttachmentsSubResource, but what my subresource thinks @ParentRef
> really points to is an object of type:
>
> AttachmentsSubResource$Proxy$_$$_WeldClientProxy
>
> and I'm not sure what I can do with that ...
>
I'm no expert, but isn't that just a weld proxy to the actual object you
want? You should be able to call any method from your real object on it
and weld will route it to the actual instance. I've not had any coffee
yet this morning so may be missing something completely here.

John