Class CouchbaseAutoConfiguration
java.lang.Object
org.springframework.boot.couchbase.autoconfigure.CouchbaseAutoConfiguration
@AutoConfiguration(afterName="org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration")
@ConditionalOnClass(com.couchbase.client.java.Cluster.class)
@Conditional(org.springframework.boot.couchbase.autoconfigure.CouchbaseAutoConfiguration.CouchbaseCondition.class)
@EnableConfigurationProperties(CouchbaseProperties.class)
public class CouchbaseAutoConfiguration
extends Object
Auto-configuration
for Couchbase.- Since:
- 4.0.0
- Author:
- EddĂș MelĂ©ndez, Stephane Nicoll, Yulin Qin, Moritz Halbritter, Andy Wilkinson, Phillip Webb, Scott Frederick
-
Method Summary
Modifier and TypeMethodDescriptioncom.couchbase.client.core.env.Authenticator
couchbaseAuthenticator
(CouchbaseConnectionDetails connectionDetails) com.couchbase.client.java.Cluster
couchbaseCluster
(com.couchbase.client.java.env.ClusterEnvironment couchbaseClusterEnvironment, com.couchbase.client.core.env.Authenticator authenticator, CouchbaseConnectionDetails connectionDetails) com.couchbase.client.java.env.ClusterEnvironment
couchbaseClusterEnvironment
(ObjectProvider<ClusterEnvironmentBuilderCustomizer> customizers, CouchbaseConnectionDetails connectionDetails)
-
Method Details
-
couchbaseClusterEnvironment
@Bean @ConditionalOnMissingBean public com.couchbase.client.java.env.ClusterEnvironment couchbaseClusterEnvironment(ObjectProvider<ClusterEnvironmentBuilderCustomizer> customizers, CouchbaseConnectionDetails connectionDetails) -
couchbaseAuthenticator
@Bean @ConditionalOnMissingBean public com.couchbase.client.core.env.Authenticator couchbaseAuthenticator(CouchbaseConnectionDetails connectionDetails) throws IOException - Throws:
IOException
-
couchbaseCluster
@Bean(destroyMethod="disconnect") @ConditionalOnMissingBean public com.couchbase.client.java.Cluster couchbaseCluster(com.couchbase.client.java.env.ClusterEnvironment couchbaseClusterEnvironment, com.couchbase.client.core.env.Authenticator authenticator, CouchbaseConnectionDetails connectionDetails)
-