Re: Same IoC module in multiple threads with different configurations

2012-02-07 Thread Thiago H. de Paula Figueiredo
On Tue, 07 Feb 2012 11:08:52 -0200, Erik Fäßler wrote: I know (though, like already said, I'm not quite sure why that is so). But: registry.getService() won't give me a new object but an already existing object (right? My experience tell's me so, but perhaps I have missed an option). It

Re: Same IoC module in multiple threads with different configurations

2012-02-07 Thread Erik Fäßler
I know (though, like already said, I'm not quite sure why that is so). But: registry.getService() won't give me a new object but an already existing object (right? My experience tell's me so, but perhaps I have missed an option). Since I have to differentiate somehow between my use cases which al

Re: Same IoC module in multiple threads with different configurations

2012-02-07 Thread Thiago H. de Paula Figueiredo
On Tue, 07 Feb 2012 06:31:59 -0200, Erik Fäßler wrote: One more question: Currently I instantiate objects with dependency injection by using "autobuild" (as a method call to the registry or as an annotation at an injection point). Is there another, perhaps more encouraged way to get obje

Re: Same IoC module in multiple threads with different configurations

2012-02-07 Thread Erik Fäßler
Thank you a lot for your elaborate answer (I don't mind digression at all! :-)) I have to confess it was new to me that you can have plain java objects with Tapestry IoC's great dependency injection. I did not yet understand why e.g. the framework logger cannot be injected into objects, but I gu

Re: Same IoC module in multiple threads with different configurations

2012-02-03 Thread Howard Lewis Ship
Your question is a bit general. There are places in my applications, and in the framework, where the same code operates with different configurations. Remember that in Tapestry IoC, you can instantiate ordinary objects, not just services. You can let Tapestry do it for you, and it will take care

Re: Same IoC module in multiple threads with different configurations

2012-02-03 Thread Thiago H. de Paula Figueiredo
On Fri, 03 Feb 2012 14:24:35 -0200, Erik Fäßler wrote: I thought of the component to become a IoC module. But I fear, modules are kind of static, too - I can't have different "instances" of a module, can I?Point is, all configuration parameters defined in a module are global as far as I

Same IoC module in multiple threads with different configurations

2012-02-03 Thread Erik Fäßler
Hello all, I'm still planning to reformulate an existing component, which has grown quite large, into Tapestry IoC (no webapp). One reason for the re-writing of this component is the following problem: The component features a static configuration class which is initialized once at startup. The