nsISupports
Last changed in Gecko 0.9.5 void createInstance(in nsISupports aOuter, in nsIIDRef iid, [retval, iid_is(iid)] out nsQIResult result); |
void lockFactory(in PRBool lock); |
Creates an instance of the class associated with this factory. Unlike getService, this returns a new instance each time it is called. (See also nsIComponentManager.createInstance.)
void createInstance( in nsISupports aOuter, in nsIIDRef iid, [retval, iid_is(iid)] out nsQIResult result );
aOuter
iid
result
NS_ERROR_NO_INTERFACE
NS_ERROR_NO_AGGREGATION
This method provides the client a way to keep the component in memory until it is finished with it.
void lockFactory( in PRBool lock );
lock
true
to lock the factory, and false
to unlock the factory.On WIN32 systems, nsIFactory
is ABI-compatible with Microsoft COM's IClassFactory
interface.
This interface was frozen for Gecko 0.9.5. See bug 99144 for details. From Gecko 2.0 interfaces are no longer frozen.