Singleton

From: DPfan (DPfan_at_yahoo.com)
Date: 10/25/03


Date: Sat, 25 Oct 2003 17:48:50 GMT

The intent of the Singleton pattern as defined in Design Patterns is to
"ensure a class has only one instance, and provide a global point of access
to it". What's the meaning of "a global point of access" here? Does it mean
to make such a Singleton object a global object?



Relevant Pages

  • Re: The use of modules (or not)
    ... Yes thats true - and of course if you are using the singleton pattern, ... singleton object can be the only instance. ... >> If you really want to use globals, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Stop Disposing of an Object Which Inherits From a Control
    ... Do you know any samples showing usage of Singleton object in the compact ... > Hi Chris, ... > You might want to look into the Singleton pattern. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Singleton
    ... I am just studying the Singleton pattern by reading the ... new book "Head First - Design Patterns" by Oreilly. ... There's a question asking something like: ... the programm could run incorrectly... ...
    (comp.software.patterns)
  • The Singleton Pattern in PHP 5
    ... To add to my growing library of Design Patterns in PHP 5 I have ... written what I think is a good example of the Singleton Pattern. ... resources such as a single db or network connection. ...
    (comp.lang.php)
  • Re: The Singleton Pattern in PHP 5
    ... >To add to my growing library of Design Patterns in PHP 5 I have ... >written what I think is a good example of the Singleton Pattern. ... >resources such as a single db or network connection. ...
    (comp.lang.php)