Facade Design Pattern - Venkat5357/GOF-DesignPatterns GitHub Wiki

  • hides the complexities of the system and provides an interface to the client using which the client can access the system.
  • usually a refactoring pattern typically used to cleanup code.
  • involves a single class which provides simplified methods required by client and delegates calls to methods of existing system classes.
  • we can use factory pattern with facade to provide better interface to client systems.
  • Examples of JAVA API are java.net.URL and javax.faces.context.facescontext

Design:

  • Just a class that uses composition.