@Configuration @ConditionalOnMissingBean(value={org.springframework.data.couchbase.config.CouchbaseConfigurer.class,CouchbaseAutoConfiguration.CouchbaseConfiguration.class}) public static class CouchbaseAutoConfiguration.CouchbaseConfiguration extends Object
Constructor and Description |
---|
CouchbaseConfiguration(CouchbaseProperties properties) |
Modifier and Type | Method and 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.
|
public CouchbaseConfiguration(CouchbaseProperties properties)
@Bean @Primary public com.couchbase.client.java.env.DefaultCouchbaseEnvironment couchbaseEnvironment() throws Exception
Exception
@Bean @Primary public com.couchbase.client.java.Cluster couchbaseCluster() throws Exception
Exception
@Bean @Primary public com.couchbase.client.java.cluster.ClusterInfo couchbaseClusterInfo() throws Exception
Exception
@Bean @Primary public com.couchbase.client.java.Bucket couchbaseClient() throws Exception
Exception
protected com.couchbase.client.java.env.DefaultCouchbaseEnvironment.Builder initializeEnvironmentBuilder(CouchbaseProperties properties)
properties
- the couchbase properties to useDefaultCouchbaseEnvironment
builder.Copyright © 2016 Pivotal Software, Inc.. All rights reserved.