Enhancement #177
closedRework component dependencies
100%
Description
Now that the DNS services has been reworked and is much cleaner, i was about to use a Factory, but i discovered the details about the dependency injection pattern, and it seems quite a better design.
We should then try to use the Needle library and construct a Service Library. The bot would then instanciate its registry and be able to plug parts à needed. This will help split the CyborgHood framework in logical pieces.
Moreover, the deferred Service Models can help autoload a service with its dependencies.
Updated by Marc Dequènes about 14 years ago
We need to check if we switch to the default Ruby logger or keep log4r, which is perfectly fine.
Updated by Marc Dequènes about 14 years ago
- Category set to Global :: Architecture
Updated by Marc Dequènes over 13 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 60
Going in the Needle direction.
Core is now using a limited DI configuration, but MapMaker and Librarian use it more widely.
I do not intend to get something final in order to close this ticket, but when the Postmaster is ready and the Core is improved a bit, a first important step would be achieved.
Updated by Marc Dequènes over 13 years ago
- Status changed from In Progress to Resolved
- % Done changed from 60 to 100
All bots now use DI and the rest of the core work is delayed into #205.