One layer above the core object is the factory code. The factory object provides a basic abstraction of the core XPCOM object.
核心对象的上一层是工厂代码层。工厂对象提供了核心XPCOM对象的基本抽象。
But forcing the public API to accommodate factory objects or abstract factories, just because the test code wants it to, is the wrong design.
但强迫公用api适应工厂对象或抽象工厂(只因为测试代码要求它这样)是错误的设计。
Help those who want to modify the Service Factory source code; doing this is not a straightforward process.
为那些希望修改服务工厂源代码的用户提供方便;目前执行此操作并不是一个简单的过程。
应用推荐