Re: Singleton Registries...

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Colin Basterfield (colinbasterfield_at_hotmail.com)
Date: 05/11/04


Date: Tue, 11 May 2004 20:05:31 +1200

Hi Benny,

Well sort of, but only as a way to implement a singleton as a Registry
object, a la Martin Fowler's Patterns of Enterprise Architecture, in the
Base Patterns section near the end.

Thanks, and I will look at the link you recommended.
Cheers
Colin B

"Benny Mathew" <benny_k_mathew@yahoo.com> wrote in message
news:OgrgBOyNEHA.3304@TK2MSFTNGP10.phx.gbl...
> Hi,
> I am not sure i understand your question correctly... Are you looking
> for a code sample for implementing a singleton pattern?, if so check
> this out.
>
> http://www.yoda.arachsys.com/csharp/singleton.html
>
> -Benny
>
> Colin Basterfield wrote:
>
> > Hi,
> >
> > I am trying to create a Singleton Registry, and have a pretty good idea
of
> > how to approach it, but does anyone know where I could find some sample
> > code?
> >
> > Many thanks
> > Colin B
> >
> >
>



Relevant Pages

  • Re: [PHP] green bean question on singleton php5
    ... mysqli class is appropriate. ... if that isnt the intention i think composition is the best choice for the ... I still don't understand the obsession of a singleton in regards to a ... Using a registry is a much better practice I think. ...
    (php.general)
  • Re: [PHP] first php 5 class
    ... ya, it is sort of dead, sad, but its still worth a look to people ... patterns implemented in php. ... I am okay with a registry that uses static methods because ... its sorta like the 'php way' for the registry. ...
    (php.general)
  • Re: RMI, singletons and multiple classloaders in Weblogic
    ... > of ClassLoaders for efficient implementation. ... > the banes of Java Singleton implementations. ... > pattern, that registry is within the class itself. ...
    (comp.lang.java.programmer)
  • RE: Transaction spanning multiple business classes
    ... Implementing UnitOfWork and the related patterns is ... Another fairly easy solution is to ... register a transaction object using some kind of Registry pattern and then ...
    (microsoft.public.dotnet.framework)
  • Re: static or not?
    ... When I need a single instance, I use a singleton (with a non-private ... So I prefer to cite the first principle of OO ("Program to an interface ... methods within any given interface without changing the Registry code. ...
    (comp.lang.java.help)