java- design patterns - skin mode

java design patterns - skin mode

  • Appearance Mode (Mode Facade): Exterior Facade provided as a set of a consistent interface subsystem interface, easy to use such that the set of subsystems (systems reduce the complexity of the original appearance by introducing a new role, while reducing and client classes subsystem Coupling)

    scenes to be used

  • Buyers: real estate agents, rental households
  • Housing agency for the appearance of the Facade, know which subsystem is responsible for processing the request, the proxy client requests to appropriate subsystem objects.
  • Rental households is a collection of subsystems: subsystem functions to achieve, the object handle assigned tasks Facade (Facade subsystems nobody any information)
  • effect:
    • You can prevent a common method call subsystem downcast.
    • You can reduce the dependency between modules

facade

Reference Documents

Guess you like

Origin www.cnblogs.com/kunlingou/p/11203997.html
Recommended