Class CouchbaseRepositoryFactoryBean<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.CouchbaseRepositoryFactoryBean<T,S,ID>
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,FactoryBean<T>
,InitializingBean
,ApplicationEventPublisherAware
,RepositoryFactoryInformation<S,
ID>
public class CouchbaseRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable>
extends RepositoryFactoryBeanSupport<T,S,ID>
The factory bean to create repositories.
- Author:
- Michael Nitschinger
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
ConstructorDescriptionCouchbaseRepositoryFactoryBean
(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 CouchbaseRepositoryFactory
getFactoryInstance
(RepositoryOperationsMapping operationsMapping) Get the factory instance for the operations.void
setCouchbaseOperations
(CouchbaseOperations operations) Set the template reference.void
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
-
CouchbaseRepositoryFactoryBean
Creates a newCouchbaseRepositoryFactoryBean
for the given repository interface.- Parameters:
repositoryInterface
- must not be null.
-
-
Method Details
-
setCouchbaseOperations
Set the template reference.- Parameters:
operations
- the reference to the operations template.
-
setCouchbaseOperationsMapping
-
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 CouchbaseRepositoryFactory getFactoryInstance(RepositoryOperationsMapping operationsMapping) Get the factory instance for the operations.- Parameters:
operationsMapping
- 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>
-