If an abstract factory object must be passed in, then you must add a new public constructor or mutator.
如果必须传入抽象工厂对象,那么您必须添加一个新的公用构造函数或赋值(mutator)方法。
At this point, you may be tempted to go one step further and replace the factory method with a full-fledged abstract factory object, as detailed in Design Patterns by Erich Gamma, et al.
此时,您可能很想更进一步并用成熟的抽象工厂对象替换工厂方法,如ErichGamma等人在设计模式中详细描述的那样。
For the design of protocol manager, we use the Proactor Pattern and abstract factory to increase the scalability of the system and reduce the coupling degree between modules.
在协议管理器的设计上,使用了前摄器模式和抽象工厂,增加整个系统的扩展性并降低了模块之间的耦合度。
For the design of protocol manager, we use the Proactor Pattern and abstract factory to increase the scalability of the system and reduce the coupling degree between modules.
在协议管理器的设计上,使用了前摄器模式和抽象工厂,增加整个系统的扩展性并降低了模块之间的耦合度。
应用推荐