Package Modeling :: Package interfaces :: Module Faulting :: Class FaultingInterface
[show private | hide private]
[frames | no frames]

Class FaultingInterface

Base --+
       |
      FaultingInterface

Known Subclasses:
DatabaseObjectInterface

Handling of Faults, i.e. objects which are initialized only when needed

Faults are like DNA for objects...

Implemented by: 'CustomObject'


Method Summary
  clearFault(self)
Invoked after the fault has been fired: it clears the fault status, and has a consequence release its handler.
  faultHandler(self)
Return the FaultHandler which is used when the object needs to be fully initialized.
  isFault(self)
Tells whether the receiver is a fault or not
  turnIntoFault(self, faultHandler)
Turns the receiver into a fault.
  willRead(self)
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.


Generated by Epydoc 2.1 on Sat Mar 4 13:36:21 2006 http://epydoc.sf.net