Re: Accessing Registered Services - Tap 5.3-beta-16

2011-10-11 Thread Thiago H. de Paula Figueiredo
On Tue, 11 Oct 2011 12:19:58 -0300, Tony Nelson wrote: Do you see anything that would make this explode in a way I wouldn't expect? Looks good to me. :) I'd just add a check in the setter method so it won't allow the ObjectLocator to be set twice. Better safe than sorry . . . -- Thiago

Re: Accessing Registered Services - Tap 5.3-beta-16

2011-10-11 Thread Tony Nelson
On Oct 11, 2011, at 11:05 AM, Thiago H. de Paula Figueiredo wrote: > On Tue, 11 Oct 2011 11:55:43 -0300, Tony Nelson wrote: > >>> But each Runnable needs all them? >> >> No, they don't. But I don't have a map of which ones need which, and quite >> honestly they can change often enough to mak

Re: Accessing Registered Services - Tap 5.3-beta-16

2011-10-11 Thread Thiago H. de Paula Figueiredo
On Tue, 11 Oct 2011 11:55:43 -0300, Tony Nelson wrote: But each Runnable needs all them? No, they don't. But I don't have a map of which ones need which, and quite honestly they can change often enough to make this a rather pain to manage. Ah, ok. :) OK, maybe I let out Tapestry-Io

Re: Accessing Registered Services - Tap 5.3-beta-16

2011-10-11 Thread Tony Nelson
On Oct 11, 2011, at 10:20 AM, Thiago H. de Paula Figueiredo wrote: > On Tue, 11 Oct 2011 11:04:22 -0300, Tony Nelson wrote: > >> I have in the neighborhood of 25 different services. Passing them all >> around seems like a workaround. > > But each Runnable needs all them? No, they don't. Bu

Re: Accessing Registered Services - Tap 5.3-beta-16

2011-10-11 Thread Tony Nelson
On Oct 10, 2011, at 6:17 PM, Thiago H. de Paula Figueiredo wrote: > On Mon, 10 Oct 2011 18:51:36 -0300, Tony Nelson wrote: > >>> In this scenario, are you in a web app or not? >> >> I am in a web app, however, I have a service that I need to start as a >> runnable. The services is registered

Re: Accessing Registered Services - Tap 5.3-beta-16

2011-10-10 Thread Thiago H. de Paula Figueiredo
On Mon, 10 Oct 2011 18:51:36 -0300, Tony Nelson wrote: In this scenario, are you in a web app or not? I am in a web app, however, I have a service that I need to start as a runnable. The services is registered with bind, and started with @Startup in AppModule. You can inject ObjectLo

Re: Accessing Registered Services - Tap 5.3-beta-16

2011-10-10 Thread Tony Nelson
On Oct 10, 2011, at 5:34 PM, Thiago H. de Paula Figueiredo wrote: > On Mon, 10 Oct 2011 18:14:01 -0300, Tony Nelson wrote: > >> >> On Oct 10, 2011, at 4:58 PM, Thiago H. de Paula Figueiredo wrote: >> >>> On Mon, 10 Oct 2011 17:18:59 -0300, Tony Nelson >>> wrote: >>> How is it possible

Re: Accessing Registered Services - Tap 5.3-beta-16

2011-10-10 Thread Thiago H. de Paula Figueiredo
On Mon, 10 Oct 2011 18:14:01 -0300, Tony Nelson wrote: On Oct 10, 2011, at 4:58 PM, Thiago H. de Paula Figueiredo wrote: On Mon, 10 Oct 2011 17:18:59 -0300, Tony Nelson wrote: How is it possible to access a service registered in AppModule#bind from an object created outside of Tapest

Accessing Registered Services - Tap 5.3-beta-16

2011-10-10 Thread Tony Nelson
How is it possible to access a service registered in AppModule#bind from an object created outside of Tapestry's control? Specifically, I have a number of services created in AppModule. One of these services creates new instances of objects via reflection to solve a specific business problem.