Class TransactionAspectSupport

java.lang.Object
org.springframework.transaction.interceptor.TransactionAspectSupport
All Implemented Interfaces:
Aware, BeanFactoryAware, InitializingBean
Direct Known Subclasses:
TransactionInterceptor

public abstract class TransactionAspectSupport extends Object implements BeanFactoryAware, InitializingBean
Base class for transactional aspects, such as the TransactionInterceptor or an AspectJ aspect.

This enables the underlying Spring transaction infrastructure to be used easily to implement an aspect for any aspect system.

Subclasses are responsible for calling methods in this class in the correct order.

If no transaction name has been specified in the TransactionAttribute, the exposed name will be the fully-qualified class name + "." + method name (by default).

Uses the Strategy design pattern. A PlatformTransactionManager or ReactiveTransactionManager implementation will perform the actual transaction management, and a TransactionAttributeSource (for example, annotation-based) is used for determining transaction definitions for a particular class or method.

A transaction aspect is serializable if its TransactionManager and TransactionAttributeSource are serializable.

Since:
1.1
Author:
Rod Johnson, Juergen Hoeller, Stéphane Nicoll, Sam Brannen, Mark Paluch, Sebastien Deleuze, Enric Sala
See Also: