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:
Chris Beams 2011-06-02 14:28:16 +00:00
parent ce78a519f6
commit e0ad6500be
4 changed files with 4 additions and 4 deletions

View File

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

View File

@ -58,7 +58,7 @@ public abstract class AbstractTransactionManagementConfiguration implements Impo
}
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 {
PlatformTransactionManager createTransactionManager();
PlatformTransactionManager annotationDrivenTransactionManager();
}

View File

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