Package org.springframework.transaction.interceptor
@NonNullApi
@NonNullFields
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
TransactionAttributeSource
that 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.CompositeTransactionAttributeSource
implementation that iterates over a given array ofTransactionAttributeSource
instances.Spring's common transaction attribute implementation.TransactionAttribute
implementation that delegates all calls to a given targetTransactionAttribute
instance.Very simple implementation of TransactionAttributeSource which will always return the same TransactionAttribute for all methods fed to it.SimpleTransactionAttributeSource
implementation that allows attributes to be stored per method in aMap
.SimpleTransactionAttributeSource
implementation that allows attributes to be matched by registered name.Tag subclass ofRollbackRuleAttribute
that has the opposite behavior to theRollbackRuleAttribute
superclass.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 theTransactionInterceptor
or an AspectJ aspect.Simple callback interface for proceeding with the target invocation.Opaque object used to hold transaction information.This interface adds arollbackOn
specification toTransactionDefinition
.PropertyEditor forTransactionAttribute
objects.Strategy interface used byTransactionInterceptor
for metadata retrieval.Advisor driven by aTransactionAttributeSource
, used to include aTransactionInterceptor
only 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.