Re: Singletons
- From: "Ed" <iamfractal@xxxxxxxxxxx>
- Date: 17 Jul 2006 04:26:55 -0700
Sasa skrev:
Hi,
What would in your opinion be the justified case for singletons?
Well, I don't use the GoF-defined singleton too much at all, so if
you're asking for strict singleton-use, read no further. If you asking
about public, single-instance behaviour, then I'll include monostate in
your general inquiry. This being the case, I tend to register key
interfaces in a single registry that's public to the entire system:
this is a useful case.
Which examples would you provide as appropriate for singletons?
See the ConcreteRegistry referenced here:
http://www.edmundkirwan.com/servlet/fractal/cs1/frac-cs40.html
..ed
--
www.EdmundKirwan.com - Home of The Fractal Class Composition.
Download Fractality, free Java code analyzer:
www.EdmundKirwan.com/servlet/fractal/frac-page130.html
.
- References:
- Singletons
- From: Sasa
- Singletons
- Prev by Date: Re: Testing relational databases
- Next by Date: Re: Observer pattern limitations
- Previous by thread: Singletons
- Next by thread: Re: Singletons
- Index(es):