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
,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
ConstructorDescriptionReactiveCouchbaseRepositoryFactoryBean
(Class<? extends T> repositoryInterface) Creates a newCouchbaseRepositoryFactoryBean
for the given repository interface. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Make sure that the dependencies are set and not null.protected RepositoryFactorySupport
Returns a factory instance.protected ReactiveCouchbaseRepositoryFactory
getFactoryInstance
(ReactiveRepositoryOperationsMapping couchbaseOperationsMapping) Get the factory instance for the operations.void
setCouchbaseOperations
(ReactiveCouchbaseOperations reactiveCouchbaseOperations) Set the template reference.void
setReactiveCouchbaseOperationsMapping
(ReactiveRepositoryOperationsMapping couchbaseOperationsMapping) 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, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
-
Constructor Details
-
ReactiveCouchbaseRepositoryFactoryBean
Creates a newCouchbaseRepositoryFactoryBean
for 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:
createRepositoryFactory
in 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:
afterPropertiesSet
in interfaceInitializingBean
- Overrides:
afterPropertiesSet
in classRepositoryFactoryBeanSupport<T extends Repository<S,
ID>, S, ID extends Serializable>
-