@Configuration public abstract class AbstractTransactionManagementConfiguration extends 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 TransactionManager |
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. |
static TransactionalEventListenerFactory |
transactionalEventListenerFactory() |
@Nullable protected AnnotationAttributes enableTx
@Nullable protected TransactionManager txManager
TransactionManagementConfigurer
.public AbstractTransactionManagementConfiguration()
public void setImportMetadata(AnnotationMetadata importMetadata)
ImportAware
Configuration
class.setImportMetadata
in interface ImportAware
@Bean(name="org.springframework.transaction.config.internalTransactionalEventListenerFactory") @Role(value=2) public static TransactionalEventListenerFactory transactionalEventListenerFactory()