没有方面,你将可能重新生成系统,将每一个调用定位于服务,设计一个适配器,并执行Adapter模式。
Without aspects, you will probably refactor the system, locate every call to the service, design an adapter, and implement the Adapter pattern.
对于PureMVC用户来说,主要的好处是当遇到依赖时可以使用依赖注入。 同时这也是最大的缺点,因为DI的使用不可避免地会改变一些原始的PureMVC使用习惯,而这些习惯是基于服务定位器模式的。
The main benefit for PureMVC users is a consequence of using the dependency injection pattern when dealing with dependencies.
使用服务定位器设计模式来简化代码。
Use of the service locator design pattern to simplify lookup code.
应用推荐