Class ReactiveCassandraRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID>

java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.cassandra.repository.support.ReactiveCassandraRepositoryFactoryBean<T,S,ID>
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.FactoryBean<T>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware, org.springframework.data.repository.core.support.RepositoryFactoryInformation<S,ID>

public class ReactiveCassandraRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID> extends org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
FactoryBean to create ReactiveCassandraRepository instances.
Since:
2.0
Author:
Mark Paluch
See Also:
  • ReactiveSortingRepository
  • Constructor Details

    • ReactiveCassandraRepositoryFactoryBean

      public ReactiveCassandraRepositoryFactoryBean(Class<? extends T> repositoryInterface)
      Create a new ReactiveCassandraRepositoryFactoryBean for the given repository interface.
      Parameters:
      repositoryInterface - must not be null.
  • Method Details

    • setReactiveCassandraOperations

      public void setReactiveCassandraOperations(ReactiveCassandraOperations operations)
      Configures the ReactiveCassandraOperations used for Cassandra data access operations.
      Parameters:
      operations - ReactiveCassandraOperations used to perform CRUD, Query and general data access operations on Apache Cassandra.
    • setMappingContext

      protected void setMappingContext(org.springframework.data.mapping.context.MappingContext<?,?> mappingContext)
      Overrides:
      setMappingContext in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID>
    • createRepositoryFactory

      protected final org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory()
      Specified by:
      createRepositoryFactory in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID>
    • createDefaultQueryMethodEvaluationContextProvider

      protected Optional<org.springframework.data.repository.query.QueryMethodEvaluationContextProvider> createDefaultQueryMethodEvaluationContextProvider(org.springframework.beans.factory.ListableBeanFactory beanFactory)
      Overrides:
      createDefaultQueryMethodEvaluationContextProvider in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID>
    • getFactoryInstance

      protected org.springframework.data.repository.core.support.RepositoryFactorySupport getFactoryInstance(ReactiveCassandraOperations operations)
      Creates and initializes a RepositoryFactorySupport instance.
      Parameters:
      operations -
      Returns:
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Overrides:
      afterPropertiesSet in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID>