工厂模式 meaning in English
abstract factory
factory pattern
factory, flyweight, observer, decorator
Examples
- You ve also learned a bit about the factory pattern itself ; namely how it works and what kinds of problems it s best suited to resolve
关于工厂模式本身,您已经了解了一些知识:即它的工作方式和它最适合解决哪类问题。 - Note that because the generic connection framework implements the factory pattern , all connections can be handled with the connection interface
请注意,因为通用连接框架实现了工厂模式,所以使用connection接口可以处理所有连接。 - In these cases , the factory pattern can be used to lay the groundwork for the creation of an object , without knowing exactly what object will be created
在这些情况下,可以使用工厂模式作为创建对象的基础,不需要确切地了解将要创建哪些对象。 - Whatever variation you use , all the factory patterns start by separating the application from the class that is to be instantiated , by inserting a
不管使用哪种变体,所有的工厂模式都是通过将应用程序从将要初始化的类中隔离出来进行启动,实现方法是插入一个 - The factory pattern is best applied in situations where you have many clients using the application classes or where making changes will be difficult or impossible
工厂模式最适用的情况是:有许多客户机要使用应用程序的类,或者进行修改很困难或不可能时。