GenericFactory.js File Reference

Go to the source code of this file.

Functions

function GenericComponentFactory (ctor, params)
 

Variables

GenericComponentFactory prototype
 

Function Documentation

function GenericComponentFactory (   ctor,
  params 
)

An object implementing nsIFactory that can construct other objects upon createInstance, passing a set of parameters to that object's constructor.

Definition at line 42 of file GenericFactory.js.

Variable Documentation

Initial value:
= {
_ctor: null,
_params: null,
createInstance: function GCF_createInstance(outer, iid) {
if (outer != null)
throw Cr.NS_ERROR_NO_AGGREGATION;
return (new this._ctor(this._params)).QueryInterface(iid);
},
QueryInterface: function GCF_QueryInterface(iid) {
if (iid.equals(Ci.nsIFactory) ||
iid.equals(Ci.nsISupports))
return this;
throw Cr.NS_ERROR_NO_INTERFACE;
}
}
sidebarFactory createInstance
Definition: nsSidebar.js:351
sbOSDControlService prototype QueryInterface
return null
Definition: FeedWriter.js:1143
const Cr
const Ci

Definition at line 46 of file GenericFactory.js.