@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(org.springframework.beans.factory.BeanFactory beanFactory,
CassandraProperties properties,
com.datastax.driver.core.Cluster cluster,
org.springframework.core.env.Environment environment) |
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(org.springframework.data.cassandra.core.convert.CassandraCustomConversions conversions) |
org.springframework.data.cassandra.config.CassandraSessionFactoryBean |
cassandraSession(org.springframework.data.cassandra.core.convert.CassandraConverter converter) |
org.springframework.data.cassandra.core.CassandraTemplate |
cassandraTemplate(com.datastax.driver.core.Session session,
org.springframework.data.cassandra.core.convert.CassandraConverter converter) |
public CassandraDataAutoConfiguration(org.springframework.beans.factory.BeanFactory beanFactory, CassandraProperties properties, com.datastax.driver.core.Cluster cluster, org.springframework.core.env.Environment environment)
@Bean @ConditionalOnMissingBean public org.springframework.data.cassandra.core.mapping.CassandraMappingContext cassandraMapping(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=com.datastax.driver.core.Session.class) public org.springframework.data.cassandra.config.CassandraSessionFactoryBean cassandraSession(org.springframework.data.cassandra.core.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.core.convert.CassandraConverter converter) throws Exception
Exception
@Bean @ConditionalOnMissingBean public org.springframework.data.cassandra.core.convert.CassandraCustomConversions cassandraCustomConversions()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.