门面模式,是指提供一个统一的接口去访问多个子系统的多个不同的接口,它为子系统中的一组接口提供一个统一的高层接口。使得子系统更容易使用。
另一种选择就是将一些相关的服务捆绑成粗粒度的服务定义,这是门面模式的变种。
Another option is the bundling of several related services into coarser-grained service definitions, which is a variation of the facade pattern.
要求一个子系统的外部与其内部的通信必须通过一个统一的对象进行。门面模式提供一个高层次的接口,使得子系统更易于使用。
Provide a unified interface to a set of interfaces in a subsystem. Facade defines a highet-level interface that makes the subsystem easier to use.
可以使用“远程门面模式(Remote Facade Pattern)”来包装这些服务,以便用合适的方式来暴露基于模型的服务。
These services can be wrapped using the "Remote Facade Pattern" to expose model-based services in an appropriate manner.
应用推荐