Re: T5 IoC - inject service in data class ?

2007-02-28 Thread Peter Beshai
Pardon my inexperience, but I'm having a little difficulty getting my head wrapped around all of these IOC concepts. I've read through much of the documentation on the tapestry website, but I'm still having a hard time understanding it all. So I should create a data factory service to handle the

Re: T5 IoC - inject service in data class ?

2007-02-27 Thread Howard Lewis Ship
The pattern of use is: You create a factory service for your data object. The data object's dependencies are injected into the factory. You ask the factory for the object, it instantiates the data object with the dependencies. buildDefaultRegistry() builds a new registry, not what you want.

T5 IoC - inject service in data class ?

2007-02-27 Thread Peter Beshai
I would like to use one of my services I have defined in AppModule in one of my data classes. Is this frowned upon? If not, how do I go about doing it? Currently my AppModule has: public static IListService buildListService( ... ) { ... return listService; } // listService is an instantation of