网络 原型设计
One could argue that you get more out-of-the-box with PureMVC, the mediators being a built-in concept of the framework.
有人会觉得PureMVC自带的东西更多一些,mediator是框架中内建的概念。
The main benefit for PureMVC users is a consequence of using the dependency injection pattern when dealing with dependencies.
对于PureMVC用户来说,主要的好处是当遇到依赖时可以使用依赖注入。 同时这也是最大的缺点,因为DI的使用不可避免地会改变一些原始的PureMVC使用习惯,而这些习惯是基于服务定位器模式的。
Murat: Integration with PureMVC was initially created just as an experimental attempt to bring IoC in PureMVC applications.
Murat:与PureMVC的集成最初只是一种实验性的尝试,用来将IoC带到PureMVC应用中。
The mediators and the communication from and to mediators through notifications have been nicely worked into the PureMVC framework.
中介者及以通知方式进出中介者的通信,都很好地整合进了PureMVC框架。
Olesen also points out that PureMVC has a document on implementation idioms and best practices that provides an actual example, the LoginPanel.
Olesen还指出PureMVC有一份关于实现之惯例和最佳实践的文档,文档中还以实际的例子LoginPanel进行解说。