Class TransactionAspectSupport

All Implemented Interfaces:
Aware, BeanFactoryAware, InitializingBean
Direct Known Subclasses:

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 (e.g. 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.

Rod Johnson, Juergen Hoeller, St├ęphane Nicoll, Sam Brannen, Mark Paluch, Sebastien Deleuze
See Also: