@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value={com.datastax.oss.driver.api.core.CqlSession.class,org.springframework.data.cassandra.core.CassandraAdminOperations.class}) @ConditionalOnBean(value=com.datastax.oss.driver.api.core.CqlSession.class) @AutoConfigureAfter(value=CassandraAutoConfiguration.class) public class CassandraDataAutoConfiguration extends Object
Auto-configuration
for Spring Data's Cassandra support.Constructor and Description |
---|
CassandraDataAutoConfiguration(com.datastax.oss.driver.api.core.CqlSession session) |
Modifier and Type | Method and 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 |
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) |
public CassandraDataAutoConfiguration(com.datastax.oss.driver.api.core.CqlSession session)
@Bean @ConditionalOnMissingBean public org.springframework.data.cassandra.core.mapping.CassandraMappingContext cassandraMapping(BeanFactory beanFactory, org.springframework.data.cassandra.core.convert.CassandraCustomConversions conversions) throws ClassNotFoundException
ClassNotFoundException
@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)
@Bean @ConditionalOnMissingBean(value=org.springframework.data.cassandra.SessionFactory.class) public org.springframework.data.cassandra.config.SessionFactoryFactoryBean cassandraSessionFactory(Environment environment, org.springframework.data.cassandra.core.convert.CassandraConverter converter)
@Bean @ConditionalOnMissingBean(value=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)
@Bean @ConditionalOnMissingBean public org.springframework.data.cassandra.core.convert.CassandraCustomConversions cassandraCustomConversions()