Discussions

EJB programming & troubleshooting: Why is a facade often implemented as a singleton ?

  1. Why is a facade often implemented as a singleton ? (1 messages)

    Why is a facade often implemented as a singleton ,
    I read it somewhere but could not find a decent answer
  2. 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.