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.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4409 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Chris Beams 2011-06-02 14:28:16 +00:00
parent ac9a3d0541
commit 28520fd5db
4 changed files with 4 additions and 4 deletions

View File

@ -181,7 +181,7 @@ public class EnableTransactionManagementIntegrationTests {
return new CallCountingTransactionManager(); return new CallCountingTransactionManager();
} }
public PlatformTransactionManager createTransactionManager() { public PlatformTransactionManager annotationDrivenTransactionManager() {
return txManager1(); return txManager1();
} }

View File

@ -58,7 +58,7 @@ public abstract class AbstractTransactionManagementConfiguration implements Impo
} }
TransactionManagementConfigurer configurer = configurers.iterator().next(); TransactionManagementConfigurer configurer = configurers.iterator().next();
this.txManager = configurer.createTransactionManager(); this.txManager = configurer.annotationDrivenTransactionManager();
} }
} }

View File

@ -20,6 +20,6 @@ import org.springframework.transaction.PlatformTransactionManager;
public interface TransactionManagementConfigurer { public interface TransactionManagementConfigurer {
PlatformTransactionManager createTransactionManager(); PlatformTransactionManager annotationDrivenTransactionManager();
} }

View File

@ -127,7 +127,7 @@ public class EnableTransactionManagementTests {
return new CallCountingTransactionManager(); return new CallCountingTransactionManager();
} }
public PlatformTransactionManager createTransactionManager() { public PlatformTransactionManager annotationDrivenTransactionManager() {
return txManager2(); return txManager2();
} }
} }