Class ReactiveCassandraRepositoryFactoryBean<T extends Repository<S,ID> , S, ID>
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.cassandra.repository.support.ReactiveCassandraRepositoryFactoryBean<T,S,ID>
- All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, FactoryBean<T>, InitializingBean, ApplicationEventPublisherAware, EnvironmentAware, RepositoryFactoryInformation<S,ID>
public class ReactiveCassandraRepositoryFactoryBean<T extends Repository<S,ID>, S, ID>
extends RepositoryFactoryBeanSupport<T,S,ID>
FactoryBean to create
ReactiveCassandraRepository instances.- Since:
- 2.0
- Author:
- Mark Paluch, Chris Bono
- See Also:
-
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
ConstructorsConstructorDescriptionReactiveCassandraRepositoryFactoryBean(Class<? extends T> repositoryInterface) Create a newReactiveCassandraRepositoryFactoryBeanfor the given repository interface. -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected final RepositoryFactorySupportprotected ReactiveCassandraRepositoryFactorygetFactoryInstance(ReactiveCassandraOperations operations) Creates and initializes aRepositoryFactorySupportinstance.protected voidsetMappingContext(MappingContext<?, ?> mappingContext) voidConfigures theReactiveCassandraOperationsused for Cassandra data access operations.voidsetRepositoryFragmentsContributor(ReactiveCassandraRepositoryFragmentsContributor repositoryFragmentsContributor) Configures theReactiveCassandraRepositoryFragmentsContributorto contribute built-in fragment functionality to the repository.Methods inherited from class RepositoryFactoryBeanSupport
addRepositoryFactoryCustomizer, createDefaultEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEnvironment, setEvaluationContextProvider, setExposeMetadata, setLazyInit, 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
-
ReactiveCassandraRepositoryFactoryBean
Create a newReactiveCassandraRepositoryFactoryBeanfor the given repository interface.- Parameters:
repositoryInterface- must not be null.
-
-
Method Details
-
setReactiveCassandraOperations
Configures theReactiveCassandraOperationsused for Cassandra data access operations.- Parameters:
operations-ReactiveCassandraOperationsused to perform CRUD, Query and general data access operations on Apache Cassandra.
-
setMappingContext
- Overrides:
setMappingContextin classRepositoryFactoryBeanSupport<T extends Repository<S,ID>, S, ID>
-
createRepositoryFactory
- Specified by:
createRepositoryFactoryin classRepositoryFactoryBeanSupport<T extends Repository<S,ID>, S, ID>
-
getFactoryInstance
protected ReactiveCassandraRepositoryFactory getFactoryInstance(ReactiveCassandraOperations operations) Creates and initializes aRepositoryFactorySupportinstance.- Parameters:
operations-- Returns:
-
getRepositoryFragmentsContributor
- Specified by:
getRepositoryFragmentsContributorin interfaceRepositoryFactoryInformation<T extends Repository<S,ID>, S> - Overrides:
getRepositoryFragmentsContributorin classRepositoryFactoryBeanSupport<T extends Repository<S,ID>, S, ID>
-
setRepositoryFragmentsContributor
public void setRepositoryFragmentsContributor(ReactiveCassandraRepositoryFragmentsContributor repositoryFragmentsContributor) Configures theReactiveCassandraRepositoryFragmentsContributorto contribute built-in fragment functionality to the repository.- Parameters:
repositoryFragmentsContributor- must not be null.- Since:
- 5.0
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean- Overrides:
afterPropertiesSetin classRepositoryFactoryBeanSupport<T extends Repository<S,ID>, S, ID>
-