DATACOUCH-509 - Align environment naming in configurer
This commit is contained in:
@@ -21,7 +21,6 @@ import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import com.couchbase.client.java.Cluster;
|
||||
import com.couchbase.client.java.ClusterOptions;
|
||||
import org.springframework.beans.factory.config.BeanDefinition;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider;
|
||||
@@ -95,13 +94,13 @@ public abstract class AbstractCouchbaseConfiguration implements CouchbaseConfigu
|
||||
public Cluster couchbaseCluster() throws Exception {
|
||||
return Cluster.connect(
|
||||
getConnectionString(),
|
||||
clusterOptions(authenticator()).environment(couchbaseConfigurer().clusterEnvironment())
|
||||
clusterOptions(authenticator()).environment(couchbaseConfigurer().couchbaseClusterEnvironment())
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Bean(destroyMethod = "shutdown")
|
||||
public ClusterEnvironment clusterEnvironment() {
|
||||
public ClusterEnvironment couchbaseClusterEnvironment() {
|
||||
ClusterEnvironment.Builder builder = ClusterEnvironment.builder();
|
||||
configureEnvironment(builder);
|
||||
return builder.build();
|
||||
|
||||
@@ -35,7 +35,7 @@ public interface CouchbaseConfigurer {
|
||||
*
|
||||
* @throws Exception in case of error during the ClusterEnvironment instantiation.
|
||||
*/
|
||||
ClusterEnvironment clusterEnvironment() throws Exception;
|
||||
ClusterEnvironment couchbaseClusterEnvironment() throws Exception;
|
||||
|
||||
/**
|
||||
* Set up the underlying main {@link Cluster} reference to be used by the Spring Data framework
|
||||
|
||||
Reference in New Issue
Block a user