Erik Erik - 1 year ago 70
Java Question

Which Aspect/Interceptor handles the @Transactional annotation

Does anyone know which class handles the @Transactional annotation? I am searching for the source code that creates the transaction, specifically.

Answer Source

TransactionInterceptor handles the interception logic, but obviously with the assistance of a lot of other infrastructure classes. That's the best place to start, though. The transaction sync stuff is pretty fearsome when you start getting into the source code.

The processing of @Transactional, and its parsing into the neutral transaction descriptor object model, is done by AnnotationTransactionAttributeSource.