Class CouchbaseAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.couchbase.CouchbaseAutoConfiguration
@AutoConfiguration(after=JacksonAutoConfiguration.class)
@ConditionalOnClass(com.couchbase.client.java.Cluster.class)
@Conditional(org.springframework.boot.autoconfigure.couchbase.CouchbaseAutoConfiguration.CouchbaseCondition.class)
@EnableConfigurationProperties(CouchbaseProperties.class)
public class CouchbaseAutoConfiguration
extends Object
Auto-configuration
for Couchbase.- Since:
- 1.4.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, ObjectProvider<SslBundles> sslBundles)
-
Method Details
-
couchbaseClusterEnvironment
@Bean @ConditionalOnMissingBean public com.couchbase.client.java.env.ClusterEnvironment couchbaseClusterEnvironment(ObjectProvider<ClusterEnvironmentBuilderCustomizer> customizers, ObjectProvider<SslBundles> sslBundles) -
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)
-