In descriptions of Facade and Singleton you can read : "Facade is often implemented as singleton".
I'd like to know when should I implement Facade as singleton and when it is a bad idea.
In descriptions of Facade and Singleton you can read : "Facade is often implemented as singleton".
I'd like to know when should I implement Facade as singleton and when it is a bad idea.
No. It is usually implemented because easier to call, but it gives several disadvantages (added from this answer):
One of the good (bad) point from the link is, it carry the lifetime of the entire application, so it never get disposed. Which can be bad if not control-able from the caller.
Applied especially for framework components.