[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Implementing a singelton

  • Thread starter Thread starter Mike Fechner
  • Start date Start date
Status
Not open for further replies.
M

Mike Fechner

Guest
Singletons require something like that. What’s your use case? There may be more elegant solutions than a singleton. A singleton combines implementation and registry. A caller needs to know the implementing class. ☹ Singletons are not mockable when unit-testing etc.. For many use cases something like the CCS Service Manager is a better solution.

Continue reading...
 
Status
Not open for further replies.
Back
Top