Package org.springframework.transaction.interceptor
@NullMarked
package org.springframework.transaction.interceptor
AOP-based solution for declarative transaction demarcation.
Builds on the AOP infrastructure in org.springframework.aop.framework.
Any POJO can be transactionally advised with Spring.
The TransactionFactoryProxyBean can be used to create transactional AOP proxies transparently to code that uses them.
The TransactionInterceptor is the AOP Alliance MethodInterceptor that delivers transactional advice, based on the Spring transaction abstraction. This allows declarative transaction management in any environment, even without JTA if an application uses only a single database.
-
ClassDescriptionAbstract implementation of
TransactionAttributeSourcethat caches attributes for methods and implements a fallback policy: 1.Advisor driven by aTransactionAttributeSource, used to include a transaction advice bean for methods that are transactional.CompositeTransactionAttributeSourceimplementation that iterates over a given array ofTransactionAttributeSourceinstances.Spring's common transaction attribute implementation.TransactionAttributeimplementation that delegates all calls to a given targetTransactionAttributeinstance.Very simple implementation of TransactionAttributeSource which will always return the same TransactionAttribute for all methods fed to it.SimpleTransactionAttributeSourceimplementation that allows attributes to be stored per method in aMap.SimpleTransactionAttributeSourceimplementation that allows attributes to be matched by registered name.Tag subclass ofRollbackRuleAttributethat has the opposite behavior to theRollbackRuleAttributesuperclass.Rule determining whether a given exception should cause a rollback.TransactionAttribute implementation that works out whether a given exception should cause transaction rollback by applying a number of rollback rules, both positive and negative.A marker interface for manually created transactional proxies.Base class for transactional aspects, such as theTransactionInterceptoror an AspectJ aspect.Simple callback interface for proceeding with the target invocation.Opaque object used to hold transaction information.This interface adds arollbackOnspecification toTransactionDefinition.PropertyEditor forTransactionAttributeobjects.Strategy interface used byTransactionInterceptorfor metadata retrieval.Advisor driven by aTransactionAttributeSource, used to include aTransactionInterceptoronly for methods that are transactional.Property editor that converts a String into aTransactionAttributeSource.AOP Alliance MethodInterceptor for declarative transaction management using the common Spring transaction infrastructure (PlatformTransactionManager/ReactiveTransactionManager).Proxy factory bean for simplified declarative transaction handling.