Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Static Private Attributes
xpcom.server.factory.Factory Class Reference

List of all members.

Public Member Functions

def __init__
def createInstance
def lockServer

Public Attributes

 klass

Static Private Attributes

 _com_interfaces_ = components.interfaces.nsIFactory

Detailed Description

Definition at line 45 of file factory.py.


Constructor & Destructor Documentation

def xpcom.server.factory.Factory.__init__ (   self,
  klass 
)

Definition at line 49 of file factory.py.

00049 
00050     def __init__(self, klass):
00051         self.klass = klass


Member Function Documentation

def xpcom.server.factory.Factory.createInstance (   self,
  outer,
  iid 
)

Definition at line 52 of file factory.py.

00052 
00053     def createInstance(self, outer, iid):
00054         if outer is not None:
00055             raise xpcom.ServerException(nsError.NS_ERROR_NO_AGGREGATION)
00056 
00057         if xpcom.verbose:
00058             print "Python Factory creating", self.klass.__name__
00059         try:
00060             return self.klass()
00061         except:
00062             # An exception here may not be obvious to the user - none
00063             # of their code has been called yet.  It can be handy on
00064             # failure to tell the user what class failed!
00065             _xpcom.LogWarning("Creation of class '%r' failed!\nException details follow\n" % (self.klass,))
00066             raise

def xpcom.server.factory.Factory.lockServer (   self,
  lock 
)

Definition at line 67 of file factory.py.

00067 
00068     def lockServer(self, lock):
00069         if xpcom.verbose:
00070             print "Python Factory LockServer called -", lock
00071 

Member Data Documentation

xpcom.server.factory.Factory._com_interfaces_ = components.interfaces.nsIFactory [static, private]

Definition at line 46 of file factory.py.

Definition at line 50 of file factory.py.


The documentation for this class was generated from the following file: