Package org.apache.tapestry5.jpa
Interface JpaTransactionAdvisor
- All Known Implementing Classes:
JpaTransactionAdvisorImpl
public interface JpaTransactionAdvisor
Service that can create an interceptor that wraps around a service implementation. After invoking
service methods
marked by
CommitAfter
the current transaction is committed.
Declared exceptions will also commit the
transaction; runtime exceptions will roll back the transaction.- Since:
- 5.3
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Identifies any methods with theCommitAfter
annotation and applies the transaction logic to those methods.
-
Method Details
-
addTransactionCommitAdvice
Identifies any methods with theCommitAfter
annotation and applies the transaction logic to those methods.- Parameters:
receiver
- advice receiver
-