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, EnvironmentAware, 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
-
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
ConstructorsConstructorDescriptionCouchbaseRepositoryFactoryBean(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 CouchbaseRepositoryFactorygetFactoryInstance(RepositoryOperationsMapping operationsMapping) Get the factory instance for the operations.voidsetCouchbaseOperations(CouchbaseOperations operations) Set the template reference.voidMethods 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
-
CouchbaseRepositoryFactoryBean
Creates a newCouchbaseRepositoryFactoryBeanfor 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:
createRepositoryFactoryin 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:
afterPropertiesSetin interfaceInitializingBean- Overrides:
afterPropertiesSetin classRepositoryFactoryBeanSupport<T extends Repository<S,ID>, S, ID extends Serializable>
-