Home | Trees | Index | Help |
|
---|
Package Modeling :: Package interfaces :: Module Faulting :: Class FaultingInterface |
|
Base
--+
|
FaultingInterface
DatabaseObjectInterface
Handling of Faults, i.e. objects which are initialized only when needed
Faults are like DNA for objects...
Implemented by: 'CustomObject'
Method Summary | |
---|---|
Invoked after the fault has been fired: it clears the fault status, and has a consequence release its handler. | |
Return the FaultHandler which is used when the object needs to be fully initialized. | |
Tells whether the receiver is a fault or not | |
Turns the receiver into a fault. | |
Triggers the fault and complete the initialization of the object. |
Method Details |
---|
clearFault(self)Invoked after the fault has been fired: it clears the fault status, and has a consequence release its handler. DatabaseObject default implementation release the FaultHandler it owned. Should raise RuntimeError if the object is not a fault. |
faultHandler(self)Return the FaultHandler which is used when the object needs to be fully initialized. Returns None if object is not a Fault. |
isFault(self)Tells whether the receiver is a fault or not |
turnIntoFault(self, faultHandler)Turns the receiver into a fault. Parameter 'faultHandler' is mandatory. Note that the object is the only owner of the FaultHandler. |
willRead(self)Triggers the fault and complete the initialization of the object. Should silently return if object is not a fault. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:21 2006 | http://epydoc.sf.net |