nsIFactory
From MDC
Contents |
[edit] Summary
The nsIFactory interface allows for the creation of nsISupports derived classes without specifying a concrete class type.
#include "nsIFactory.h" [scriptable, uuid=(00000001-0000-0000-c000-000000000046)] interface nsIFactory : nsISupports { ... };
[edit] Methods
-
createInstance - Creates an instance of the class associated with this factory.
-
lockFactory - This method provides the client a way to keep the component in memory until it is finished with it.
[edit] Remarks
On WIN32 systems, nsIFactory is ABI-compatible with Microsoft COM's IClassFactory interface.
[edit] History
This interface was frozen for Mozilla 0.9.5. See bug 99144 for details.