You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dan Griffin <da...@gmail.com> on 2011/03/01 01:03:49 UTC

Lazy injection

Hi all,

Is there a way to inject a service lazily?

Thanks,
Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: SSO in ComponentRequestFilter

Posted by Dan Griffin <da...@gmail.com>.
Yes, that works. Thanks.

> On Mon, 28 Feb 2011 23:07:00 -0300, Dan Griffin <da...@gmail.com> 
> wrote:
>
>> Yes, thank you Kalle.
>>
>> It seams that I haven`t diagnosed my problem properly. My real issue 
>> here is that I can`t use SessionScoped in ComponentRequestFilter 
>> instance. Is there a way around this?
>
> You can only use the @SessionState annotation in classes inside 
> Tapestry-controlled packages (pages, components, mixins, base).
>
> To get and set SSOs in other classes, use the ApplicationStateManager 
> service.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: SSO in ComponentRequestFilter

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Mon, 28 Feb 2011 23:07:00 -0300, Dan Griffin <da...@gmail.com>  
wrote:

> Yes, thank you Kalle.
>
> It seams that I haven`t diagnosed my problem properly. My real issue  
> here is that I can`t use SessionScoped in ComponentRequestFilter  
> instance. Is there a way around this?

You can only use the @SessionState annotation in classes inside  
Tapestry-controlled packages (pages, components, mixins, base).

To get and set SSOs in other classes, use the ApplicationStateManager  
service.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


SSO in ComponentRequestFilter

Posted by Dan Griffin <da...@gmail.com>.
Yes, thank you Kalle.

It seams that I haven`t diagnosed my problem properly. My real issue 
here is that I can`t use SessionScoped in ComponentRequestFilter 
instance. Is there a way around this?
> That's the default. Only if you use @EagerLoader, the services are
> instantiated.. err.. eagerly, otherwise the actual service is created
> (realized) on the first invocation of the service proxy.
>
> Kalle
>
>
> On Mon, Feb 28, 2011 at 4:03 PM, Dan Griffin<da...@gmail.com>  wrote:
>    
>> Hi all,
>>
>> Is there a way to inject a service lazily?
>>
>> Thanks,
>> Dan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>      
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>    


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Lazy injection

Posted by Kalle Korhonen <ka...@gmail.com>.
That's the default. Only if you use @EagerLoader, the services are
instantiated.. err.. eagerly, otherwise the actual service is created
(realized) on the first invocation of the service proxy.

Kalle


On Mon, Feb 28, 2011 at 4:03 PM, Dan Griffin <da...@gmail.com> wrote:
> Hi all,
>
> Is there a way to inject a service lazily?
>
> Thanks,
> Dan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org