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
  • Constructor Summary

    Constructors
    Constructor
    Description
    CassandraDataAutoConfiguration(com.datastax.oss.driver.api.core.CqlSession session)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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
     
    org.springframework.data.cassandra.core.mapping.CassandraMappingContext
    cassandraMapping(BeanFactory beanFactory, 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CassandraDataAutoConfiguration

      public CassandraDataAutoConfiguration(com.datastax.oss.driver.api.core.CqlSession session)
  • Method Details

    • cassandraMapping

      @Bean @ConditionalOnMissingBean public org.springframework.data.cassandra.core.mapping.CassandraMappingContext cassandraMapping(BeanFactory beanFactory, org.springframework.data.cassandra.core.convert.CassandraCustomConversions conversions) throws ClassNotFoundException
      Throws:
      ClassNotFoundException
    • 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()