I agree, it shouldn't be that complicated!
For now, I managed to retrieve my injected beans by using something similar to the following since I have access to a component object:

Bean b = (Bean)component.getPage().getProperty("injectedSpringProperty");

I suspect I would have to access HiveMind registry If I didn't have access to a component object.

Cheers,

--
Serge


----Original Message Follows----
From: Henri Dupre <[EMAIL PROTECTED]>
Reply-To: Henri Dupre <[EMAIL PROTECTED]>
To: Tapestry users <[email protected]>
Subject: Re: Picasso: Injected Spring Objects
Date: Fri, 22 Jul 2005 13:55:30 -0400

On 7/22/05, Richard Kirby <[EMAIL PROTECTED]> wrote:
> What you could do, is define your own classes as Hivemind services in
> their own right in your hivemind.xml, and then you can inject anything
> into them - including Spring beans if you have the Spring hookup
> configured already.

That sounds a little heavy weight just to inject few properties... I
assume that if you do that then Hivemind becomes responsible to
instantiate the class, and then you need another mechanism to retrieve
the instance.

Isn't there any method that would just enhance a class and return its reference?

Henri.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to