com.vaadin.service.
Interface ApplicationContext.TransactionListener
All Superinterfaces:
Enclosing interface:
- extends Serializable
public static interface ApplicationContext.TransactionListener
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)
- Parameters:
application
- the Application object.transactionData
- the Data identifying the transaction.
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.
transactionEnd
void transactionEnd(Application application,
Object transactionData)
- Parameters:
applcation
- the Application object.transactionData
- the Data identifying the transaction.
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.