@Configuration(proxyBeanMethods=false) 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) |
TransactionAttributeSource |
transactionAttributeSource() |
TransactionInterceptor |
transactionInterceptor(TransactionAttributeSource transactionAttributeSource) |
setImportMetadata, transactionalEventListenerFactory
public ProxyTransactionManagementConfiguration()
@Bean(name="org.springframework.transaction.config.internalTransactionAdvisor") @Role(value=2) public BeanFactoryTransactionAttributeSourceAdvisor transactionAdvisor(TransactionAttributeSource transactionAttributeSource, TransactionInterceptor transactionInterceptor)
@Bean @Role(value=2) public TransactionAttributeSource transactionAttributeSource()
@Bean @Role(value=2) public TransactionInterceptor transactionInterceptor(TransactionAttributeSource transactionAttributeSource)