Thiago H. de Paula Figueiredo wrote:
> 
> 
> In this case, the approach I suggest you is to create a service (or many)  
> that is a factory of domain objects. This factory would get the  
> dependencies, using @Inject or constructor injection, and inject them into  
> the domain objects. AFAIK, all the IoC frameworks I know don't provide any  
> way to deal with injecting dependencies into domain objects.
> 
> 

OK, this is what I suspected.

Just from the documentation, I didn't know if injecting dependencies 
into domain objects is possible or not. Thanks for the clarification.

andreas
-- 
View this message in context: 
http://old.nabble.com/Using---Injecting-Tapestry-5-services-in-objects-that-are-*not*-components---pages---services-tp28666562p28669108.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to