users@jersey.java.net

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

From: Christopher Piggott <cpiggott_at_gmail.com>
Date: Thu, 30 Aug 2012 07:47:03 -0400

On Mon, Aug 27, 2012 at 3:08 AM, John Lister <john.lister_at_kickstone.com> wrote:
> 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.

Hi John,

Yeah it sort of does, but I need a way to refer to it ... and casting
to that proxy didn't seem to work. I don't know how to use it. What
I was hoping was that I could just declare it as a @ParentRef of the
type that I think it should be, and if it's a proxy (i.e. a subclass)
then it's assignable so that should have worked.

Based on what Marek said, though, I am giving up on the whole
@ParentRef idea ... sounds like it's planned to be extinct.