Why is a facade often implemented as a singleton ,
I read it somewhere but could not find a decent answer
-
Why is a facade often implemented as a singleton ? (1 messages)
- Posted by: Nagg rao
- Posted on: February 20 2004 19:24 EST
Threaded Messages (1)
- Why is a facade often implemented as a singleton ? by Paul Strack on February 20 2004 20:03 EST
-
Why is a facade often implemented as a singleton ?[ Go to top ]
- Posted by: Paul Strack
- Posted on: February 20 2004 20:03 EST
- in response to Nagg rao
Many facades are stateless (simply passing requests through to other components). If an object has no state, there is no reason to have more than one of them, so you may as well make it a singleton.