Class AnnotationTransactionAttributeSource

java.lang.Object
org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource
org.springframework.transaction.annotation.AnnotationTransactionAttributeSource
All Implemented Interfaces:
Serializable, Aware, EmbeddedValueResolverAware, TransactionAttributeSource

public class AnnotationTransactionAttributeSource extends AbstractFallbackTransactionAttributeSource implements Serializable
Implementation of the TransactionAttributeSource interface for working with transaction metadata from annotations.

This class reads Spring's @Transactional annotation and exposes corresponding transaction attributes to Spring's transaction infrastructure. Also supports JTA's Transactional and EJB's TransactionAttribute annotation (if present).

This class may also serve as base class for a custom TransactionAttributeSource, or get customized through TransactionAnnotationParser strategies.

Since:
1.2
Author:
Colin Sampaleanu, Juergen Hoeller
See Also: