Package muntjac :: Package service :: Module application_context :: Class ITransactionListener
[hide private]
[frames] | no frames]

Class ITransactionListener

source code

object --+
         |
        ITransactionListener

Interface for listening to transaction events. Implement this interface to listen to all transactions between the client and the application.

Instance Methods [hide private]
 
transactionStart(self, application, transactionData)
Invoked at the beginning of every transaction.
source code
 
transactionEnd(self, application, transactionData)
Invoked at the end of every transaction.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

transactionStart(self, application, transactionData)

source code 

Invoked at the beginning of every transaction.

The transaction is linked to the context, not the application so if you have multiple applications running in the same context you need to check that the request is associated with the application you are interested in. This can be done looking at the application parameter.

Parameters:
  • application - the Application object.
  • transactionData - the Data identifying the transaction.

transactionEnd(self, application, transactionData)

source code 

Invoked at the end of every transaction.

The transaction is linked to the context, not the application so if you have multiple applications running in the same context you need to check that the request is associated with the application you are interested in. This can be done looking at the application parameter.

Parameters:
  • application - the application object.
  • transactionData - the data identifying the transaction.