@Configuration @ConditionalOnClass(value={com.datastax.driver.core.Cluster.class,org.springframework.data.cassandra.core.CassandraAdminOperations.class}) @EnableConfigurationProperties(value=CassandraProperties.class) public class CassandraDataAutoConfiguration extends Object
Auto-configuration
for Spring Data's Cassandra support.Constructor and Description |
---|
CassandraDataAutoConfiguration(BeanFactory beanFactory,
CassandraProperties properties,
com.datastax.driver.core.Cluster cluster,
Environment environment) |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.cassandra.convert.CassandraConverter |
cassandraConverter(org.springframework.data.cassandra.mapping.CassandraMappingContext mapping) |
org.springframework.data.cassandra.mapping.CassandraMappingContext |
cassandraMapping() |
org.springframework.data.cassandra.core.CassandraTemplate |
cassandraTemplate(com.datastax.driver.core.Session session,
org.springframework.data.cassandra.convert.CassandraConverter converter) |
org.springframework.data.cassandra.config.CassandraSessionFactoryBean |
session(org.springframework.data.cassandra.convert.CassandraConverter converter) |
public CassandraDataAutoConfiguration(BeanFactory beanFactory, CassandraProperties properties, com.datastax.driver.core.Cluster cluster, Environment environment)
@Bean @ConditionalOnMissingBean public org.springframework.data.cassandra.mapping.CassandraMappingContext cassandraMapping() throws ClassNotFoundException
ClassNotFoundException
@Bean @ConditionalOnMissingBean public org.springframework.data.cassandra.convert.CassandraConverter cassandraConverter(org.springframework.data.cassandra.mapping.CassandraMappingContext mapping)
@Bean @ConditionalOnMissingBean(value=com.datastax.driver.core.Session.class) public org.springframework.data.cassandra.config.CassandraSessionFactoryBean session(org.springframework.data.cassandra.convert.CassandraConverter converter) throws Exception
Exception
@Bean @ConditionalOnMissingBean public org.springframework.data.cassandra.core.CassandraTemplate cassandraTemplate(com.datastax.driver.core.Session session, org.springframework.data.cassandra.convert.CassandraConverter converter) throws Exception
Exception
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.