© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
V. SarcarJava Design Patternshttps://doi.org/10.1007/978-1-4842-7971-7_11

11. Facade Pattern

Vaskaran Sarcar1  
(1)
Garia, Kolkata, India
 

This chapter covers the Facade pattern.

GoF Definition

It provides a unified interface to a set of interfaces in a subsystem. The Facade pattern defines a higher-level interface that makes the subsystem easier to use.

Concept

This pattern is a great promoter of loose coupling. Using this pattern, you emphasize the abstraction and hide the complex details by exposing a simple interface.

Consider a simple case. Let’s say an application has multiple classes and each consists of multiple methods. A client can make a product using ...

Get Java Design Patterns: A Hands-On Experience with Real-World Examples now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.