@Configuration public class ProxyTransactionManagementConfiguration extends AbstractTransactionManagementConfiguration
@Configuration
class that registers the Spring infrastructure beans
necessary to enable proxy-based annotation-driven transaction management.EnableTransactionManagement
,
TransactionManagementConfigurationSelector
enableTx, txManager
Constructor and Description |
---|
ProxyTransactionManagementConfiguration() |
Modifier and Type | Method and Description |
---|---|
BeanFactoryTransactionAttributeSourceAdvisor |
transactionAdvisor() |
TransactionAttributeSource |
transactionAttributeSource() |
TransactionInterceptor |
transactionInterceptor() |
setImportMetadata, transactionalEventListenerFactory
public ProxyTransactionManagementConfiguration()
@Bean(name="org.springframework.transaction.config.internalTransactionAdvisor") @Role(value=2) public BeanFactoryTransactionAttributeSourceAdvisor transactionAdvisor()
@Bean @Role(value=2) public TransactionAttributeSource transactionAttributeSource()
@Bean @Role(value=2) public TransactionInterceptor transactionInterceptor()