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
-
Nested Class Summary
Nested classes/interfaces inherited from class RepositoryFactoryBeanSupport
RepositoryFactoryBeanSupport.FragmentCreationContext, RepositoryFactoryBeanSupport.RepositoryFragmentsFunction -
Field Summary
Fields inherited from interface 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 RepositoryFactoryBeanSupport
addRepositoryFactoryCustomizer, createDefaultEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryFragmentsContributor, getRepositoryInformation, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEnvironment, setEvaluationContextProvider, setExposeMetadata, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments, setRepositoryFragmentsFunctionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FactoryBean
isSingleton
-
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>
-