Erik Erik - 2 months ago 19
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

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.