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