Rework component dependencies
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 over 10 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.