Sep 13, 2018


From a higher-level view, every API can be considered an implementation of the façade pattern since they provide a simple interface which hides its complexity. Any call to an API's method results in the invocation of many other methods from a subsystem hidden behind it. An example of a façade would be the javax.servlet.http.HttpSession interface. This hides the complicated logic associated with maintaining the session while exposing its functionality via a handful of simple-to-use methods.