Class CassandraDataAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.data.cassandra.CassandraDataAutoConfiguration
@AutoConfiguration(after=CassandraAutoConfiguration.class)
@ConditionalOnClass({com.datastax.oss.driver.api.core.CqlSession.class,org.springframework.data.cassandra.core.CassandraAdminOperations.class})
@ConditionalOnBean(com.datastax.oss.driver.api.core.CqlSession.class)
public class CassandraDataAutoConfiguration
extends Object
Auto-configuration
for Spring Data's Cassandra support.- Since:
- 1.3.0
- Author:
- Julien Dubois, EddĂș MelĂ©ndez, Mark Paluch, Madhura Bhave, Christoph Strobl
-
Constructor Summary
ConstructorDescriptionCassandraDataAutoConfiguration
(com.datastax.oss.driver.api.core.CqlSession session) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.cassandra.core.convert.CassandraConverter
cassandraConverter
(org.springframework.data.cassandra.core.mapping.CassandraMappingContext mapping, org.springframework.data.cassandra.core.convert.CassandraCustomConversions conversions) org.springframework.data.cassandra.core.convert.CassandraCustomConversions
static org.springframework.data.cassandra.CassandraManagedTypes
cassandraManagedTypes
(BeanFactory beanFactory) org.springframework.data.cassandra.core.mapping.CassandraMappingContext
cassandraMappingContext
(org.springframework.data.cassandra.CassandraManagedTypes cassandraManagedTypes, org.springframework.data.cassandra.core.convert.CassandraCustomConversions conversions) org.springframework.data.cassandra.config.SessionFactoryFactoryBean
cassandraSessionFactory
(Environment environment, org.springframework.data.cassandra.core.convert.CassandraConverter converter) org.springframework.data.cassandra.core.CassandraTemplate
cassandraTemplate
(org.springframework.data.cassandra.SessionFactory sessionFactory, org.springframework.data.cassandra.core.convert.CassandraConverter converter)
-
Constructor Details
-
CassandraDataAutoConfiguration
-
-
Method Details
-
cassandraManagedTypes
@Bean @ConditionalOnMissingBean public static org.springframework.data.cassandra.CassandraManagedTypes cassandraManagedTypes(BeanFactory beanFactory) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
cassandraMappingContext
@Bean @ConditionalOnMissingBean public org.springframework.data.cassandra.core.mapping.CassandraMappingContext cassandraMappingContext(org.springframework.data.cassandra.CassandraManagedTypes cassandraManagedTypes, org.springframework.data.cassandra.core.convert.CassandraCustomConversions conversions) -
cassandraConverter
@Bean @ConditionalOnMissingBean public org.springframework.data.cassandra.core.convert.CassandraConverter cassandraConverter(org.springframework.data.cassandra.core.mapping.CassandraMappingContext mapping, org.springframework.data.cassandra.core.convert.CassandraCustomConversions conversions) -
cassandraSessionFactory
@Bean @ConditionalOnMissingBean(org.springframework.data.cassandra.SessionFactory.class) public org.springframework.data.cassandra.config.SessionFactoryFactoryBean cassandraSessionFactory(Environment environment, org.springframework.data.cassandra.core.convert.CassandraConverter converter) -
cassandraTemplate
@Bean @ConditionalOnMissingBean(org.springframework.data.cassandra.core.CassandraOperations.class) public org.springframework.data.cassandra.core.CassandraTemplate cassandraTemplate(org.springframework.data.cassandra.SessionFactory sessionFactory, org.springframework.data.cassandra.core.convert.CassandraConverter converter) -
cassandraCustomConversions
@Bean @ConditionalOnMissingBean public org.springframework.data.cassandra.core.convert.CassandraCustomConversions cassandraCustomConversions()
-