Class AbstractTransactionManagementConfiguration
- java.lang.Object
- org.springframework.transaction.annotation.AbstractTransactionManagementConfiguration
- All Implemented Interfaces:
Aware,ImportAware
- Direct Known Subclasses:
AspectJTransactionManagementConfiguration,ProxyTransactionManagementConfiguration
@Configuration public abstract class AbstractTransactionManagementConfiguration extends Object implements ImportAware
Abstract base@Configurationclass providing common structure for enabling Spring's annotation-driven transaction management capability.- Since:
- 3.1
- Author:
- Chris Beams, Stephane Nicoll
- See Also:
EnableTransactionManagement
Field Summary
Fields Modifier and Type Field Description protected AnnotationAttributesenableTxprotected PlatformTransactionManagertxManagerDefault transaction manager, as configured through aTransactionManagementConfigurer.
Constructor Summary
Constructors Constructor Description AbstractTransactionManagementConfiguration()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetImportMetadata(AnnotationMetadata importMetadata)Set the annotation metadata of the importing @Configurationclass.TransactionalEventListenerFactorytransactionalEventListenerFactory()
Field Detail
enableTx
protected AnnotationAttributes enableTx
txManager
protected PlatformTransactionManager txManager
Default transaction manager, as configured through aTransactionManagementConfigurer.
Constructor Detail
AbstractTransactionManagementConfiguration
public AbstractTransactionManagementConfiguration()
Method Detail
setImportMetadata
public void setImportMetadata(AnnotationMetadata importMetadata)
Description copied from interface:ImportAwareSet the annotation metadata of the importing @Configurationclass.- Specified by:
setImportMetadatain interfaceImportAware
transactionalEventListenerFactory
@Bean(name="org.springframework.transaction.config.internalTransactionalEventListenerFactory") @Role(2) public TransactionalEventListenerFactory transactionalEventListenerFactory()