要确保使用了正确的提要读取器实现,还要创建一个工厂类,基于最终所需的输出格式提供适当的提要阅读器。
To ensure that the correct feed reader implementation is used, you also create a factory class that provides the appropriate feed reader based on your eventual desired output format.
2个数据格式转换任务,一个本地数据仓库用来存储后面处理流程中用到的客户订单,一个循环处理来选择并将订单发送到正确的制造工厂。
two data format conversion tasks, local data repositories to store customer orders for later use in the process, and a process loop to select and forward orders to the correct manufacturing plant.
在清单9中,格式化地址的代码被移到接口、实现类和工厂中—养成“使用接口”的习惯。
In Listing 9, the code that formatted the address is moved to interfaces, implementation classes, and a factory - building the "use interfaces" habit.
ButterflyFactory类读取该配置文件的格式,并充当Butterfly对象的工厂类(参见清单9)。
The ButterflyFactory class reads this configuration file format and ACTS as a factory for Butterfly objects (see Listing 9).
在后一种情况下,组件用工厂(Factory)设计模式来查找指定值类的缺省格式化器。
In the latter case, the component USES the Factory design pattern to look up the default formatters for the class of the specified value.
梦工厂鼓励歌手们将他们唱的歌曲和照片以数字格式传输到网上,并有专门人员对其做出评估。
Artists are being encouraged to transmit songs and a photograph of themselves on a digital format, which will then be evaluated by the talent scouts.
梦工厂鼓励歌手们将他们唱的歌曲和照片以数字格式传输到网上,并有专门人员对其做出评估。
Artists are being encouraged to transmit songs and a photograph of themselves on a digital format, which will then be evaluated by the talent scouts.
应用推荐