#296 - Rename DatabaseClient bean to r2dbcDatabaseClient.

This commit is contained in:
Mark Paluch
2020-02-12 14:29:06 +01:00
parent 1e1888245f
commit f5b9d658d9
3 changed files with 3 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ public abstract class AbstractR2dbcConfiguration implements ApplicationContextAw
* @return must not be {@literal null}.
* @throws IllegalArgumentException if any of the required args is {@literal null}.
*/
@Bean
@Bean({ "r2dbcDatabaseClient", "databaseClient" })
public DatabaseClient databaseClient(ReactiveDataAccessStrategy dataAccessStrategy,
R2dbcExceptionTranslator exceptionTranslator) {

View File

@@ -122,7 +122,7 @@ public @interface EnableR2dbcRepositories {
*
* @return
*/
String databaseClientRef() default "databaseClient";
String databaseClientRef() default "r2dbcDatabaseClient";
/**
* Configures whether nested repository-interfaces (e.g. defined as inner classes) should be discovered by the

View File

@@ -45,7 +45,7 @@ public class R2dbcRepositoriesRegistrarTests {
static class Config {
@Bean
public DatabaseClient databaseClient() {
public DatabaseClient r2dbcDatabaseClient() {
return mock(DatabaseClient.class);
}