{"json_modified": "2016-03-28T08:20:00.484976", "uuid": "7f5cc8e4-0785-45b9-8957-10703ddad266", "title": "Generic factory", "url": "/en-US/docs/Mozilla/Tech/XPCOM/Generic_factory", "tags": ["XPCOM"], "translations": [{"uuid": "9d2b715a-b6f6-44d9-b8d0-5aa85bc2c74b", "title": "Generic factory", "url": "/ja/docs/Generic_factory", "tags": ["XPCOM"], "summary": "XPCOM \u3067\u306f\u3001\u6c4e\u7528\u30d5\u30a1\u30af\u30c8\u30ea \u306f xpcom/glue/nsIGenericFactory.h \u306b\u3042\u308b\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u751f\u6210\u3055\u308c\u305f\u30d5\u30a1\u30af\u30c8\u30ea\u306e\u3053\u3068\u3092\u6307\u3057\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2007-10-03T17:23:35", "review_tags": []}, {"uuid": "6856750d-ac6e-490b-9ef5-5cfb77a0ba49", "title": "Generic factory", "url": "/zh-CN/docs/Generic_factory", "tags": [], "summary": "Most XPCOM factories can be very simple. Rick Potts wrote a templated-based generic factory (nsFactory) that simplifies the factory creation process that just requires writing a CreateInstance() method. The new nsIGenericFactory interface takes this a step further, by providing a single interface that can be reused anytime a simple implementation of nsIFactory is needed. Here is the interface, and a description of its use.", "localization_tags": [], "locale": "zh-CN", "last_edit": "2014-05-08T01:47:29", "review_tags": []}], "modified": "2016-02-28T08:54:41", "label": "Generic factory", "localization_tags": [], "locale": "en-US", "id": 37373, "last_edit": "2007-10-03T17:12:30", "summary": "Most XPCOM factories can be very simple. Rick Potts wrote a templated-based generic factory (nsFactory) that simplifies the factory creation process that just requires writing a CreateInstance() method. The new nsIGenericFactory interface takes this a step further, by providing a single interface that can be reused anytime a simple implementation of nsIFactory is needed. Here is the interface, and a description of its use.", "sections": [{"id": "Summary", "title": " Summary "}, {"id": "Examples", "title": " Examples "}, {"id": "Background", "title": " Background "}, {"id": "Original_Document_Information", "title": " Original Document Information "}], "slug": "Mozilla/Tech/XPCOM/Generic_factory", "review_tags": []}