@Configuration public abstract class AbstractTransactionManagementConfiguration extends java.lang.Object implements ImportAware
@Configuration class providing common structure for enabling
Spring's annotation-driven transaction management capability.EnableTransactionManagement| Modifier and Type | Field and Description |
|---|---|
protected AnnotationAttributes |
enableTx |
protected PlatformTransactionManager |
txManager
Default transaction manager, as configured through a
TransactionManagementConfigurer. |
| Constructor and Description |
|---|
AbstractTransactionManagementConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
setImportMetadata(AnnotationMetadata importMetadata)
Set the annotation metadata of the importing @
Configuration class. |
TransactionalEventListenerFactory |
transactionalEventListenerFactory() |
@Nullable protected AnnotationAttributes enableTx
@Nullable protected PlatformTransactionManager txManager
TransactionManagementConfigurer.public AbstractTransactionManagementConfiguration()
public void setImportMetadata(AnnotationMetadata importMetadata)
ImportAwareConfiguration class.setImportMetadata in interface ImportAware@Bean(name="org.springframework.transaction.config.internalTransactionalEventListenerFactory") @Role(value=2) public TransactionalEventListenerFactory transactionalEventListenerFactory()