Class ReactiveCouchbaseRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable>
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.couchbase.repository.support.ReactiveCouchbaseRepositoryFactoryBean<T,S,ID>
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,FactoryBean<T>,InitializingBean,ApplicationEventPublisherAware,EnvironmentAware,RepositoryFactoryInformation<S,ID>
public class ReactiveCouchbaseRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable>
extends RepositoryFactoryBeanSupport<T,S,ID>
- Since:
- 3.0
- Author:
- Subhashni Balakrishnan
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionReactiveCouchbaseRepositoryFactoryBean(Class<? extends T> repositoryInterface) Creates a newCouchbaseRepositoryFactoryBeanfor the given repository interface. -
Method Summary
Modifier and TypeMethodDescriptionvoidMake sure that the dependencies are set and not null.protected RepositoryFactorySupportReturns a factory instance.protected ReactiveCouchbaseRepositoryFactorygetFactoryInstance(ReactiveRepositoryOperationsMapping couchbaseOperationsMapping) Get the factory instance for the operations.voidsetCouchbaseOperations(ReactiveCouchbaseOperations reactiveCouchbaseOperations) Set the template reference.voidsetReactiveCouchbaseOperationsMapping(ReactiveRepositoryOperationsMapping couchbaseOperationsMapping) Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport
addRepositoryFactoryCustomizer, createDefaultEvaluationContextProvider, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEnvironment, setEvaluationContextProvider, setEvaluationContextProvider, setExposeMetadata, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
-
Constructor Details
-
ReactiveCouchbaseRepositoryFactoryBean
Creates a newCouchbaseRepositoryFactoryBeanfor the given repository interface.- Parameters:
repositoryInterface- must not be null.
-
-
Method Details
-
setCouchbaseOperations
Set the template reference.- Parameters:
reactiveCouchbaseOperations- the reference to the operations template.
-
setReactiveCouchbaseOperationsMapping
public void setReactiveCouchbaseOperationsMapping(ReactiveRepositoryOperationsMapping couchbaseOperationsMapping) -
createRepositoryFactory
Returns a factory instance.- Specified by:
createRepositoryFactoryin classRepositoryFactoryBeanSupport<T extends Repository<S,ID>, S, ID extends Serializable> - Returns:
- the factory instance.
-
getFactoryInstance
protected ReactiveCouchbaseRepositoryFactory getFactoryInstance(ReactiveRepositoryOperationsMapping couchbaseOperationsMapping) Get the factory instance for the operations.- Parameters:
couchbaseOperationsMapping- the reference to the template.- Returns:
- the factory instance.
-
afterPropertiesSet
public void afterPropertiesSet()Make sure that the dependencies are set and not null.- Specified by:
afterPropertiesSetin interfaceInitializingBean- Overrides:
afterPropertiesSetin classRepositoryFactoryBeanSupport<T extends Repository<S,ID>, S, ID extends Serializable>
-