Why is a facade often implemented as a singleton ,
- Posted by: Nagg rao
- Posted on: February 20 2004 19:24 EST
I read it somewhere but could not find a decent answer
- Why is a facade often implemented as a singleton ? by Paul Strack on February 20 2004 20:03 EST
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.