Class ReactiveCosmosRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,​K>,​S,​K extends Serializable>

  • 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,​K>

    public class ReactiveCosmosRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,​K>,​S,​K extends Serializable>
    extends org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,​S,​K>
    Adapter for Springs FactoryBean interface to allow easy setup of reactive cosmos repository factories via Spring configuration.
    • Field Summary

      • Fields inherited from interface org.springframework.beans.factory.FactoryBean

        OBJECT_TYPE_ATTRIBUTE
    • Constructor Summary

      Constructors 
      Constructor Description
      ReactiveCosmosRepositoryFactoryBean​(Class<? extends T> repositoryInterface)
      Creates a new RepositoryFactoryBeanSupport for the given repository interface.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterPropertiesSet()  
      protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory()  
      protected org.springframework.data.repository.core.support.RepositoryFactorySupport getFactoryInstance()  
      protected void setMappingContext​(org.springframework.data.mapping.context.MappingContext<?,​?> mappingContext)  
      void setReactiveCosmosOperations​(ReactiveCosmosOperations operations)
      Set reactive CosmosDB operations
      • Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport

        addRepositoryFactoryCustomizer, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
    • Constructor Detail

      • ReactiveCosmosRepositoryFactoryBean

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

      • setReactiveCosmosOperations

        public void setReactiveCosmosOperations​(ReactiveCosmosOperations operations)
        Set reactive CosmosDB operations
        Parameters:
        operations - contains cosmos operations
      • 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,​K>,​S,​K extends Serializable>
      • getFactoryInstance

        protected org.springframework.data.repository.core.support.RepositoryFactorySupport getFactoryInstance()
        Returns:
        the factory instance
      • 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,​K>,​S,​K extends Serializable>
      • 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,​K>,​S,​K extends Serializable>