Project

General

Profile

Enhancement #177

Rework component dependencies

Added by Marc Dequènes over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Category:
Global :: Architecture
Target version:
Start date:
2010-10-31
Due date:
% Done:

100%

Estimated time:
Patch Available:
No
Found in Versions:
Confirmed:
No
Branch:
Help Needed:

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.

History

#1

Updated by Marc Dequènes over 10 years ago

We need to check if we switch to the default Ruby logger or keep log4r, which is perfectly fine.

#2

Updated by Marc Dequènes over 10 years ago

  • Category set to Global :: Architecture
#3

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.

#4

Updated by Marc Dequènes over 10 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.

Also available in: Atom PDF