Facade-mönstret tillhandahåller ett förenklat gränssnitt till ett komplext subsystem — det döljer komplexiteten bakom en enda, ren ingångspunkt. Det gör en komplicerad uppsättning komponenter enklare att använda, utan att ta bort åtkomsten till de underliggande detaljerna.
Vad Facade-mönstret gör
FACADE → a SIMPLE interface in front of a COMPLEX subsystem:
→ the subsystem has many components/steps; the facade provides ONE easy interface
→ clients use the simple facade instead of dealing with the complexity directly
→ the facade coordinates the underlying components
→ HIDE complexity behind a clean, easy-to-use interface
