com.vaadin.service
Interface ApplicationContext.TransactionListener

All Superinterfaces:
Serializable
Enclosing interface:
ApplicationContext

public static interface ApplicationContext.TransactionListener
extends Serializable

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


Method Summary
 void transactionEnd(Application application, Object transactionData)
          Invoked at the end of every transaction.
 void transactionStart(Application application, Object transactionData)
          Invoked at the beginning of every transaction.
 

Method Detail

transactionStart

void transactionStart(Application application,
                      Object transactionData)
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

void transactionEnd(Application application,
                    Object transactionData)
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:
applcation - the Application object.
transactionData - the Data identifying the transaction.


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.