Re: Ok, really dumb questions about ioc scopes...
On Fri, 16 Jul 2010 22:35:03 -0300, Christian Gruber christianedwardgru...@gmail.com wrote: (that last message came out a little cattier than I meant, Thiago. Sorry) No problem, Christian. :) -- 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-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Ok, really dumb questions about ioc scopes...
I see singleton and per-thread... and there's an implicit session scope wiht SessionState annotations... Are there session and reqeust scopes? I've managed to avoid a request-scoped object until now, but I think I need one in the ioc... but I don't see these two scopes explicitly documented anywhere. Is there a web equivalent to ScopeConstants? Or just well-defined, documented scope names? Christian. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ok, really dumb questions about ioc scopes...
per-thread is the same as request within a Tapestry application. There's been talk about a sesson scope, but it doesn't exist. SessionState are not services so there's no scope for them. On Fri, Jul 16, 2010 at 11:30 AM, Christian Edward Gruber christianedwardgru...@gmail.com wrote: I see singleton and per-thread... and there's an implicit session scope wiht SessionState annotations... Are there session and reqeust scopes? I've managed to avoid a request-scoped object until now, but I think I need one in the ioc... but I don't see these two scopes explicitly documented anywhere. Is there a web equivalent to ScopeConstants? Or just well-defined, documented scope names? Christian. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ok, really dumb questions about ioc scopes...
Check. Ok - I wasn't sure about per-thread, since it's possible to implement thread scope against a request object, instead of per-thread. thanks, Christian. On Jul 16, 2010, at 2:39 PM, Howard Lewis Ship wrote: per-thread is the same as request within a Tapestry application. There's been talk about a sesson scope, but it doesn't exist. SessionState are not services so there's no scope for them. On Fri, Jul 16, 2010 at 11:30 AM, Christian Edward Gruber christianedwardgru...@gmail.com wrote: I see singleton and per-thread... and there's an implicit session scope wiht SessionState annotations... Are there session and reqeust scopes? I've managed to avoid a request-scoped object until now, but I think I need one in the ioc... but I don't see these two scopes explicitly documented anywhere. Is there a web equivalent to ScopeConstants? Or just well-defined, documented scope names? Christian. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ok, really dumb questions about ioc scopes...
On Fri, 16 Jul 2010 15:30:15 -0300, Christian Edward Gruber christianedwardgru...@gmail.com wrote: I see singleton and per-thread... and there's an implicit session scope wiht SessionState annotations... Are there session and reqeust scopes? As a T-IoC scope, no. There are annotations and services that use the servlet request and session, but this is not related to T-IoC. -- 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-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ok, really dumb questions about ioc scopes...
I need to bind a service into request scope, so it's whatever I need to do in my module. On Jul 16, 2010, at 3:03 PM, Thiago H. de Paula Figueiredo wrote: On Fri, 16 Jul 2010 15:30:15 -0300, Christian Edward Gruber christianedwardgru...@gmail.com wrote: I see singleton and per-thread... and there's an implicit session scope wiht SessionState annotations... Are there session and reqeust scopes? As a T-IoC scope, no. There are annotations and services that use the servlet request and session, but this is not related to T-IoC. -- 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-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ok, really dumb questions about ioc scopes...
On Fri, 16 Jul 2010 16:07:58 -0300, Christian Edward Gruber christianedwardgru...@gmail.com wrote: I need to bind a service into request scope, so it's whatever I need to do in my module. In web applications, unless you create new threads, request scope is the same as thread scope. If this is not your scenario, creating a request scope shouldn't be hard. I never needed to implement a scope. -- 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-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ok, really dumb questions about ioc scopes...
Heh. I don't need to be schooled in web development :) But most ioc frameworks have a web-centric naming for such a scope, and I wanted to be sure that the right way to do it was with per-thread. cheers, Christian. On Jul 16, 2010, at 3:24 PM, Thiago H. de Paula Figueiredo wrote: On Fri, 16 Jul 2010 16:07:58 -0300, Christian Edward Gruber christianedwardgru...@gmail.com wrote: I need to bind a service into request scope, so it's whatever I need to do in my module. In web applications, unless you create new threads, request scope is the same as thread scope. If this is not your scenario, creating a request scope shouldn't be hard. I never needed to implement a scope. -- 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-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ok, really dumb questions about ioc scopes...
(that last message came out a little cattier than I meant, Thiago. Sorry) On Fri, Jul 16, 2010 at 7:36 PM, Christian Edward Gruber christianedwardgru...@gmail.com wrote: Heh. I don't need to be schooled in web development :) But most ioc frameworks have a web-centric naming for such a scope, and I wanted to be sure that the right way to do it was with per-thread. cheers, Christian. On Jul 16, 2010, at 3:24 PM, Thiago H. de Paula Figueiredo wrote: On Fri, 16 Jul 2010 16:07:58 -0300, Christian Edward Gruber christianedwardgru...@gmail.com wrote: I need to bind a service into request scope, so it's whatever I need to do in my module. In web applications, unless you create new threads, request scope is the same as thread scope. If this is not your scenario, creating a request scope shouldn't be hard. I never needed to implement a scope. -- 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-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- - Christian Gruber christianedwardgru...@gmail.com