@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
/ *
* Copyright 2002 - 2019 the original author or authors .
* Copyright 2002 - 2020 the original author or authors .
*
* Licensed under the Apache License , Version 2 . 0 ( the "License" ) ;
* you may not use this file except in compliance with the License .
@ -36,13 +36,14 @@ import org.springframework.transaction.interceptor.TransactionInterceptor;
@@ -36,13 +36,14 @@ import org.springframework.transaction.interceptor.TransactionInterceptor;
* @see TransactionManagementConfigurationSelector
* /
@Configuration ( proxyBeanMethods = false )
@Role ( BeanDefinition . ROLE_INFRASTRUCTURE )
public class ProxyTransactionManagementConfiguration extends AbstractTransactionManagementConfiguration {
@Bean ( name = TransactionManagementConfigUtils . TRANSACTION_ADVISOR_BEAN_NAME )
@Role ( BeanDefinition . ROLE_INFRASTRUCTURE )
public BeanFactoryTransactionAttributeSourceAdvisor transactionAdvisor (
TransactionAttributeSource transactionAttributeSource ,
TransactionInterceptor transactionInterceptor ) {
TransactionAttributeSource transactionAttributeSource , TransactionInterceptor transactionInterceptor ) {
BeanFactoryTransactionAttributeSourceAdvisor advisor = new BeanFactoryTransactionAttributeSourceAdvisor ( ) ;
advisor . setTransactionAttributeSource ( transactionAttributeSource ) ;
advisor . setAdvice ( transactionInterceptor ) ;
@ -60,8 +61,7 @@ public class ProxyTransactionManagementConfiguration extends AbstractTransaction
@@ -60,8 +61,7 @@ public class ProxyTransactionManagementConfiguration extends AbstractTransaction
@Bean
@Role ( BeanDefinition . ROLE_INFRASTRUCTURE )
public TransactionInterceptor transactionInterceptor (
TransactionAttributeSource transactionAttributeSource ) {
public TransactionInterceptor transactionInterceptor ( TransactionAttributeSource transactionAttributeSource ) {
TransactionInterceptor interceptor = new TransactionInterceptor ( ) ;
interceptor . setTransactionAttributeSource ( transactionAttributeSource ) ;
if ( this . txManager ! = null ) {