Rename TransactionManagementConfigurer callback
Renamed TransactionManagementConfigurer#createTransactionManager() to #annotationDrivenTransactionManager() to better reflect the fact that the implemented method is optionally eligible for @Bean annotation. See Javadoc for details.
This commit is contained in:
		
							parent
							
								
									ce78a519f6
								
							
						
					
					
						commit
						e0ad6500be
					
				| 
						 | 
				
			
			@ -181,7 +181,7 @@ public class EnableTransactionManagementIntegrationTests {
 | 
			
		|||
			return new CallCountingTransactionManager();
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		public PlatformTransactionManager createTransactionManager() {
 | 
			
		||||
		public PlatformTransactionManager annotationDrivenTransactionManager() {
 | 
			
		||||
			return txManager1();
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -58,7 +58,7 @@ public abstract class AbstractTransactionManagementConfiguration implements Impo
 | 
			
		|||
		}
 | 
			
		||||
 | 
			
		||||
		TransactionManagementConfigurer configurer = configurers.iterator().next();
 | 
			
		||||
		this.txManager = configurer.createTransactionManager();
 | 
			
		||||
		this.txManager = configurer.annotationDrivenTransactionManager();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -20,6 +20,6 @@ import org.springframework.transaction.PlatformTransactionManager;
 | 
			
		|||
 | 
			
		||||
public interface TransactionManagementConfigurer {
 | 
			
		||||
 | 
			
		||||
	PlatformTransactionManager createTransactionManager();
 | 
			
		||||
	PlatformTransactionManager annotationDrivenTransactionManager();
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -127,7 +127,7 @@ public class EnableTransactionManagementTests {
 | 
			
		|||
			return new CallCountingTransactionManager();
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		public PlatformTransactionManager createTransactionManager() {
 | 
			
		||||
		public PlatformTransactionManager annotationDrivenTransactionManager() {
 | 
			
		||||
			return txManager2();
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue