摘要:《PHP设计模式》第3章适配器模式,本章通过适配器设计模式(Adapter Design Pattern),编程人员能够使用新的代码和功能性来帮助更新原有的系统。本节为大家介绍问题与解决方案。
基于28个网页-相关网页
但如果你有一个传统的系统,但是它不是使用像适配器这样的模式设计的。
But what if you have a legacy system that was not designed with patterns like adapters?
框架通过框架适配器、代理和相关设计模式的实现提供与其他技术的透明集成。
The framework provides transparent integration with other technologies via framework adapters, proxies and the implementation of related design patterns.
因此,如果希望将适配器应用到设计中,将从选择面板选择对应的元素,并在工具中进行一些操作,以对设计进行转换,从而实使用该模式。
So, if you wanted to apply an adapter to one of your designs, you'd pull that element off the palette and make some manipulations in the tool to actually transform your design to use the pattern.
应用推荐