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

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
Singleton just means “one and only one running at a time”. Nothing more. The static-class-property-named-instance is just one way of making sure there’s only one instance and of getting access to it – and to my mind arguably the * worst * way of doing it. I totally agree with Mike’s arguments and also that something like a service manager is a far better way of dealing with this. Yes, it’s more complex, and more code, and usually more abstract/generic. BUT the benefits (to me) far outweigh the costs.

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