Class CassandraAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.cassandra.CassandraAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(com.datastax.oss.driver.api.core.CqlSession.class)
@EnableConfigurationProperties(CassandraProperties.class)
public class CassandraAutoConfiguration
extends Object
Auto-configuration
for Cassandra.- Since:
- 1.3.0
- Author:
- Julien Dubois, Phillip Webb, EddĂș MelĂ©ndez, Stephane Nicoll, Steffen F. Qvistgaard
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.datastax.oss.driver.api.core.config.DriverConfigLoader
cassandraDriverConfigLoader
(CassandraProperties properties, ObjectProvider<DriverConfigLoaderBuilderCustomizer> builderCustomizers) com.datastax.oss.driver.api.core.CqlSession
cassandraSession
(com.datastax.oss.driver.api.core.CqlSessionBuilder cqlSessionBuilder) com.datastax.oss.driver.api.core.CqlSessionBuilder
cassandraSessionBuilder
(CassandraProperties properties, com.datastax.oss.driver.api.core.config.DriverConfigLoader driverConfigLoader, ObjectProvider<CqlSessionBuilderCustomizer> builderCustomizers)
-
Constructor Details
-
CassandraAutoConfiguration
public CassandraAutoConfiguration()
-
-
Method Details
-
cassandraSession
@Bean @ConditionalOnMissingBean @Lazy public com.datastax.oss.driver.api.core.CqlSession cassandraSession(com.datastax.oss.driver.api.core.CqlSessionBuilder cqlSessionBuilder) -
cassandraSessionBuilder
@Bean @ConditionalOnMissingBean @Scope("prototype") public com.datastax.oss.driver.api.core.CqlSessionBuilder cassandraSessionBuilder(CassandraProperties properties, com.datastax.oss.driver.api.core.config.DriverConfigLoader driverConfigLoader, ObjectProvider<CqlSessionBuilderCustomizer> builderCustomizers) -
cassandraDriverConfigLoader
@Bean(destroyMethod="") @ConditionalOnMissingBean public com.datastax.oss.driver.api.core.config.DriverConfigLoader cassandraDriverConfigLoader(CassandraProperties properties, ObjectProvider<DriverConfigLoaderBuilderCustomizer> builderCustomizers)
-