Class CouchbaseAutoConfiguration.CouchbaseConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.couchbase.CouchbaseAutoConfiguration.CouchbaseConfiguration
- Enclosing class:
- CouchbaseAutoConfiguration
@Configuration @ConditionalOnMissingBean(value=CouchbaseConfiguration.class, type="org.springframework.data.couchbase.config.CouchbaseConfigurer") public static class CouchbaseAutoConfiguration.CouchbaseConfiguration extends Object
Constructor Summary
Constructors Constructor Description CouchbaseConfiguration(CouchbaseProperties properties)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.couchbase.client.java.Bucket
couchbaseClient()
com.couchbase.client.java.Cluster
couchbaseCluster()
com.couchbase.client.java.cluster.ClusterInfo
couchbaseClusterInfo()
com.couchbase.client.java.env.DefaultCouchbaseEnvironment
couchbaseEnvironment()
protected com.couchbase.client.java.env.DefaultCouchbaseEnvironment.Builder
initializeEnvironmentBuilder(CouchbaseProperties properties)
Initialize an environment builder based on the specified settings.
Constructor Detail
CouchbaseConfiguration
public CouchbaseConfiguration(CouchbaseProperties properties)
Method Detail
couchbaseEnvironment
@Bean @Primary public com.couchbase.client.java.env.DefaultCouchbaseEnvironment couchbaseEnvironment() throws Exception
- Throws:
Exception
couchbaseCluster
@Bean @Primary public com.couchbase.client.java.Cluster couchbaseCluster() throws Exception
- Throws:
Exception
couchbaseClusterInfo
@Bean @Primary @DependsOn("couchbaseClient") public com.couchbase.client.java.cluster.ClusterInfo couchbaseClusterInfo() throws Exception
- Throws:
Exception
couchbaseClient
@Bean @Primary public com.couchbase.client.java.Bucket couchbaseClient() throws Exception
- Throws:
Exception
initializeEnvironmentBuilder
protected com.couchbase.client.java.env.DefaultCouchbaseEnvironment.Builder initializeEnvironmentBuilder(CouchbaseProperties properties)
Initialize an environment builder based on the specified settings.- Parameters:
properties
- the couchbase properties to use- Returns:
- the
DefaultCouchbaseEnvironment
builder.