程序包的使用
org.springframework.transaction.interceptor
使用org.springframework.transaction.interceptor的程序包 程序包 说明 org.springframework.test.context.transaction Transactional support classes for the Spring TestContext Framework.org.springframework.transaction.annotation Spring's support for annotation-based transaction demarcation.org.springframework.transaction.interceptor AOP-based solution for declarative transaction demarcation.org.springframework.test.context.transaction使用的org.springframework.transaction.interceptor中的类 类 说明 TransactionAttribute This interface adds arollbackOn
specification toTransactionDefinition
.TransactionAttributeSource Strategy interface used byTransactionInterceptor
for metadata retrieval.org.springframework.transaction.annotation使用的org.springframework.transaction.interceptor中的类 类 说明 AbstractFallbackTransactionAttributeSource Abstract implementation ofTransactionAttributeSource
that caches attributes for methods and implements a fallback policy: 1. specific target method; 2. target class; 3. declaring method; 4. declaring class/interface.BeanFactoryTransactionAttributeSourceAdvisor Advisor driven by aTransactionAttributeSource
, used to include a transaction advice bean for methods that are transactional.TransactionAttribute This interface adds arollbackOn
specification toTransactionDefinition
.TransactionAttributeSource Strategy interface used byTransactionInterceptor
for metadata retrieval.TransactionInterceptor AOP Alliance MethodInterceptor for declarative transaction management using the common Spring transaction infrastructure (PlatformTransactionManager
/ReactiveTransactionManager
).org.springframework.transaction.interceptor使用的org.springframework.transaction.interceptor中的类 类 说明 DefaultTransactionAttribute Spring's common transaction attribute implementation.RollbackRuleAttribute Rule determining whether or not a given exception (and any subclasses) should cause a rollback.RuleBasedTransactionAttribute TransactionAttribute implementation that works out whether a given exception should cause transaction rollback by applying a number of rollback rules, both positive and negative.TransactionAspectSupport Base class for transactional aspects, such as theTransactionInterceptor
or an AspectJ aspect.TransactionAspectSupport.InvocationCallback Simple callback interface for proceeding with the target invocation.TransactionAspectSupport.TransactionInfo Opaque object used to hold transaction information.TransactionAttribute This interface adds arollbackOn
specification toTransactionDefinition
.TransactionAttributeSource Strategy interface used byTransactionInterceptor
for metadata retrieval.TransactionInterceptor AOP Alliance MethodInterceptor for declarative transaction management using the common Spring transaction infrastructure (PlatformTransactionManager
/ReactiveTransactionManager
).