Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Sounds like you were using singletons. (Don't do that.) Commented Sep 25, 2010 at 4:50
  • @Roger, no, these were not Singletons. You could in fact have multiple so called "models" open at the same time, each containing a single dedicated instance of each Service type. I am well aware of the problems with Singletons, but thanks nevertheless :-) Commented Sep 25, 2010 at 19:09
  • 2
    it's only 2 phases initialization if you consider that the registration of listeners is part of the initialization. In a dynamic view of the world, where services pop and go, the registration of listeners is part of the life of the system. Commented Jan 11, 2011 at 14:38
  • @Matthieu, this was not so dynamic a system - the set of possible existing services and their relations was strictly hard-coded, and most of them just had to be present in every model. We could've tried to refactor the system to start moving into that direction though, but that would have been a huge endeavour for which we simply had no resources. Commented Jan 11, 2011 at 15:30
  • 1
    Ah resources... we all got there :) Commented Jan 12, 2011 at 7:16