@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value={com.datastax.driver.core.Cluster.class,org.springframework.data.cassandra.core.CassandraAdminOperations.class}) @ConditionalOnBean(value=com.datastax.driver.core.Cluster.class) @EnableConfigurationProperties(value=CassandraProperties.class) @AutoConfigureAfter(value=CassandraAutoConfiguration.class) public class CassandraDataAutoConfiguration extends Object
Auto-configuration
for Spring Data's Cassandra support.Constructor and Description |
---|
CassandraDataAutoConfiguration(CassandraProperties properties,
com.datastax.driver.core.Cluster cluster) |
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.CassandraSessionFactoryBean |
cassandraSession(Environment environment,
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(CassandraProperties properties, com.datastax.driver.core.Cluster cluster)
@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=com.datastax.driver.core.Session.class) public org.springframework.data.cassandra.config.CassandraSessionFactoryBean cassandraSession(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(com.datastax.driver.core.Session session, org.springframework.data.cassandra.core.convert.CassandraConverter converter)
@Bean @ConditionalOnMissingBean public org.springframework.data.cassandra.core.convert.CassandraCustomConversions cassandraCustomConversions()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.