Home > other >  If the factory pattern conflict with congestion model, cannot coexist?
If the factory pattern conflict with congestion model, cannot coexist?

Time:11-20

Congestion model, my understanding is a module (kind of) their management status and good behavior, does not produce a management class, don't know whether this understanding is wrong?
Factory pattern, can abstract the construction method, the instance created by the factory to do it, like this can cancel a class at instantiation for other types of dependencies, transfer the dependencies to the factory, this case, the plant became the instantiation of a class of "management", and congestion model conflict?
I also want to ask, the maintainability of the congestion model will be a few taller, the difficulty to maintain or more?
  • Related