@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=com.datastax.oss.driver.api.core.CqlSession.class) @EnableConfigurationProperties(value=CassandraProperties.class) public class CassandraAutoConfiguration extends Object
Auto-configuration
for Cassandra.Constructor and Description |
---|
CassandraAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
com.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) |
@Bean @ConditionalOnMissingBean @Lazy public com.datastax.oss.driver.api.core.CqlSession cassandraSession(com.datastax.oss.driver.api.core.CqlSessionBuilder cqlSessionBuilder)
@Bean @ConditionalOnMissingBean @Scope(value="prototype") public com.datastax.oss.driver.api.core.CqlSessionBuilder cassandraSessionBuilder(CassandraProperties properties, com.datastax.oss.driver.api.core.config.DriverConfigLoader driverConfigLoader, ObjectProvider<CqlSessionBuilderCustomizer> builderCustomizers)
@Bean(destroyMethod="") @ConditionalOnMissingBean public com.datastax.oss.driver.api.core.config.DriverConfigLoader cassandraDriverConfigLoader(CassandraProperties properties, ObjectProvider<DriverConfigLoaderBuilderCustomizer> builderCustomizers)