Re: [tap-ioc] point of injection

2009-04-21 Thread Christian Edward Gruber
On 21-Apr-09, at 07:02 , manuel aldana wrote: Christian Edward Gruber wrote: On 20-Apr-09, at 19:39 , Thiago H. de Paula Figueiredo wrote: Now I get it. Thanks Christian! All you said, to me, is one more reason to not inject services in domain objects . . . :) Yeah - that's such an anti-

Re: [tap-ioc] point of injection

2009-04-21 Thread manuel aldana
Thiago H. de Paula Figueiredo wrote: If applicable I try to inject services to domain-objects to add pluggable behaviour to them (so I don't end up with an anemic domain model). I disagree with adding services to domain objects. But please let's not start a discussion about it. This is not

Re: [tap-ioc] point of injection

2009-04-21 Thread manuel aldana
Christian Edward Gruber wrote: On 20-Apr-09, at 19:39 , Thiago H. de Paula Figueiredo wrote: I think he means value objects or domain models. You can't usefully have the container create an instance of Movie because movie is a data-carrying node. It's a bit like having the IoC container crea

Re: [tap-ioc] point of injection

2009-04-20 Thread Christian Edward Gruber
On 20-Apr-09, at 19:39 , Thiago H. de Paula Figueiredo wrote: I think he means value objects or domain models. You can't usefully have the container create an instance of Movie because movie is a data-carrying node. It's a bit like having the IoC container create any random Map you might

Re: [tap-ioc] point of injection

2009-04-20 Thread Thiago H. de Paula Figueiredo
Em Mon, 20 Apr 2009 20:26:17 -0300, Christian Edward Gruber escreveu: I think he means value objects or domain models. You can't usefully have the container create an instance of Movie because movie is a data- carrying node. It's a bit like having the IoC container create any random Map

Re: [tap-ioc] point of injection

2009-04-20 Thread Christian Edward Gruber
I think he means value objects or domain models. You can't usefully have the container create an instance of Movie because movie is a data- carrying node. It's a bit like having the IoC container create any random Map you might need. If it's a named Map that is a central store for somethi

Re: [tap-ioc] point of injection

2009-04-20 Thread Thiago H. de Paula Figueiredo
Em Mon, 20 Apr 2009 19:05:24 -0300, manuel aldana escreveu: Your convention makes sense, but what do you do with objects which are usually created directly by other code and not by tapestry, thus constructor injection won't be the best solution? If it's possible, I add the object as a Tape

Re: [tap-ioc] point of injection

2009-04-20 Thread manuel aldana
Thiago H. de Paula Figueiredo schrieb: Em Mon, 20 Apr 2009 16:38:51 -0300, manuel aldana escreveu: When does tapestry-ioc inject stuff to object (@Inject annotation)? I guess it is straight after finishing the constructor... Is it possible to have the injection already available after the c

Re: [tap-ioc] point of injection

2009-04-20 Thread Thiago H. de Paula Figueiredo
Em Mon, 20 Apr 2009 16:38:51 -0300, manuel aldana escreveu: When does tapestry-ioc inject stuff to object (@Inject annotation)? I guess it is straight after finishing the constructor... Is it possible to have the injection already available after the call of super() inside the constructor?

[tap-ioc] point of injection

2009-04-20 Thread manuel aldana
When does tapestry-ioc inject stuff to object (@Inject annotation)? I guess it is straight after finishing the constructor... Is it possible to have the injection already available after the call of super() inside the constructor? This way the injection would be available already inside the re