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

  • Thread starter Thread starter goo
  • Start date Start date
Status
Not open for further replies.
G

goo

Guest
I used static instead, worked swell :-) Sendt fra min iPhone 1. des. 2017 kl. 11:51 skrev Mike Fechner : Update from Progress Community Mike Fechner 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. View online You received this notification because you subscribed to the forum. To unsubscribe from only this thread, go here . Flag this post as spam/abuse.

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