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

java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.mongodb.repository.support.ReactiveMongoRepositoryFactoryBean<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 ReactiveMongoRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable> extends org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
FactoryBean to create ReactiveMongoRepository instances.
Since:
2.0
Author:
Mark Paluch, Christoph Strobl
See Also:
  • ReactiveSortingRepository
  • RxJava3SortingRepository
  • Constructor Details

    • ReactiveMongoRepositoryFactoryBean

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

    • setReactiveMongoOperations

      public void setReactiveMongoOperations(@Nullable ReactiveMongoOperations operations)
      Configures the ReactiveMongoOperations to be used.
      Parameters:
      operations - the operations to set
    • setCreateIndexesForQueryMethods

      public void setCreateIndexesForQueryMethods(boolean createIndexesForQueryMethods)
      Configures whether to automatically create indexes for the properties referenced in a query method.
      Parameters:
      createIndexesForQueryMethods - the createIndexesForQueryMethods to set
    • setMappingContext

      public 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 extends Serializable>
    • createRepositoryFactory

      protected 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 extends Serializable>
    • 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 extends Serializable>
    • getFactoryInstance

      protected org.springframework.data.repository.core.support.RepositoryFactorySupport getFactoryInstance(ReactiveMongoOperations 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 extends Serializable>