Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 17131, Singletons via interfaces

by Alexander Rodigin Email: Anonymous


This article describes a standardized approach to creating and using singletons via interfaces. No special knowledge about interfaces is needed and also this solution may be greatly enhanced later by implementing additional interfaces.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 3.0  to 6.0 1857 downloads
Copyright: No significant restrictions


Size: 12,262 bytes
Updated on Mon, 03 Dec 2001 03:04:21 GMT
Originally uploaded on Mon, 03 Dec 2001 03:05:32 GMT
SHA1 Hash: E99686382D80FAD7ABF3153231782B3C10483C88
MD5 Hash: C1A2941BC1C9AA9EF29B1E53EC5BBE70

    Explore the files in this upload

Description
In many situations we need to instantiate only one instance of a particular object like Application, Printer etc. It is a good idea to introduce a singleton factory that provides a standardized way of creating and using singletons among different developers and projects so that no new decisions are required when new singleton object has to be made. While we could go with usual approach of using global variables like it is in VCL more robust solution is to use interfaces.

This article describes a standardized approach to creating and using singletons via interfaces. No special knowledge about interfaces is needed and also this solution may be greatly enhanced later by implementing additional interfaces.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03