You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Stephane Decleire <sd...@cariboo-networks.com> on 2006/06/01 22:06:45 UTC

Bean instantiation

Hi all,

Does anybody know when the instantiation of a bean occured when it's 
injected in a Tapestry page ?
I mean, for example, if i code an injection like :

    @InjectSpring("Ad")
    public abstract Ad getAd();

Is the Ad bean instantiated when the page is attached ? or is it when i 
first call the getAd() function ?

Thanks in advance.

-- 
Stéphane Decleire

05 56 57 99 20
06 63 78 69 06


Re: Bean instantiation

Posted by Jesse Kuhnert <jk...@gmail.com>.
Completely wild (as in not confirmed) guess, but probably the first time the
method is called.

On 6/1/06, Stephane Decleire <sd...@cariboo-networks.com> wrote:
>
> Hi all,
>
> Does anybody know when the instantiation of a bean occured when it's
> injected in a Tapestry page ?
> I mean, for example, if i code an injection like :
>
>     @InjectSpring("Ad")
>     public abstract Ad getAd();
>
> Is the Ad bean instantiated when the page is attached ? or is it when i
> first call the getAd() function ?
>
> Thanks in advance.
>
> --
> Stéphane Decleire
>
> 05 56 57 99 20
> 06 63 78 69 06
>
>
>


-- 
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.