类 AbstractTransactionManagementConfiguration
- java.lang.Object
- org.springframework.transaction.annotation.AbstractTransactionManagementConfiguration
- 所有已实现的接口:
Aware,ImportAware
@Configuration public abstract class AbstractTransactionManagementConfiguration extends Object implements ImportAware
Abstract base@Configurationclass providing common structure for enabling Spring's annotation-driven transaction management capability.- 从以下版本开始:
- 3.1
- 作者:
- Chris Beams, Stephane Nicoll
- 另请参阅:
EnableTransactionManagement
字段概要
字段 修饰符和类型 字段 说明 protected AnnotationAttributesenableTxprotected PlatformTransactionManagertxManagerDefault transaction manager, as configured through aTransactionManagementConfigurer.
构造器概要
构造器 构造器 说明 AbstractTransactionManagementConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidsetImportMetadata(AnnotationMetadata importMetadata)Set the annotation metadata of the importing @Configurationclass.TransactionalEventListenerFactorytransactionalEventListenerFactory()
字段详细资料
enableTx
protected AnnotationAttributes enableTx
txManager
protected PlatformTransactionManager txManager
Default transaction manager, as configured through aTransactionManagementConfigurer.
构造器详细资料
AbstractTransactionManagementConfiguration
public AbstractTransactionManagementConfiguration()
方法详细资料
setImportMetadata
public void setImportMetadata(AnnotationMetadata importMetadata)
从接口复制的说明:ImportAwareSet the annotation metadata of the importing @Configurationclass.- 指定者:
setImportMetadata在接口中ImportAware
transactionalEventListenerFactory
@Bean(name="org.springframework.transaction.config.internalTransactionalEventListenerFactory") @Role(2) public TransactionalEventListenerFactory transactionalEventListenerFactory()