Class ReactiveCassandraRepositoryFactoryBean<T extends org.springframework.data.repository.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:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.FactoryBean<T>
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationEventPublisherAware
,org.springframework.data.repository.core.support.RepositoryFactoryInformation<S,
ID>
public class ReactiveCassandraRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID>
extends org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
FactoryBean
to create
ReactiveCassandraRepository
instances.- Since:
- 2.0
- Author:
- Mark Paluch
- See Also:
-
ReactiveSortingRepository
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
ConstructorDescriptionReactiveCassandraRepositoryFactoryBean
(Class<? extends T> repositoryInterface) Create a newReactiveCassandraRepositoryFactoryBean
for the given repository interface. -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected Optional<org.springframework.data.repository.query.QueryMethodEvaluationContextProvider>
createDefaultQueryMethodEvaluationContextProvider
(org.springframework.beans.factory.ListableBeanFactory beanFactory) protected final org.springframework.data.repository.core.support.RepositoryFactorySupport
protected org.springframework.data.repository.core.support.RepositoryFactorySupport
getFactoryInstance
(ReactiveCassandraOperations operations) Creates and initializes aRepositoryFactorySupport
instance.protected void
setMappingContext
(org.springframework.data.mapping.context.MappingContext<?, ?> mappingContext) void
Configures theReactiveCassandraOperations
used for Cassandra data access operations.Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport
addRepositoryFactoryCustomizer, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
-
Constructor Details
-
ReactiveCassandraRepositoryFactoryBean
Create a newReactiveCassandraRepositoryFactoryBean
for the given repository interface.- Parameters:
repositoryInterface
- must not be null.
-
-
Method Details
-
setReactiveCassandraOperations
Configures theReactiveCassandraOperations
used for Cassandra data access operations.- Parameters:
operations
-ReactiveCassandraOperations
used to perform CRUD, Query and general data access operations on Apache Cassandra.
-
setMappingContext
protected void setMappingContext(org.springframework.data.mapping.context.MappingContext<?, ?> mappingContext) -
createRepositoryFactory
protected final org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory() -
createDefaultQueryMethodEvaluationContextProvider
protected Optional<org.springframework.data.repository.query.QueryMethodEvaluationContextProvider> createDefaultQueryMethodEvaluationContextProvider(org.springframework.beans.factory.ListableBeanFactory beanFactory) -
getFactoryInstance
protected org.springframework.data.repository.core.support.RepositoryFactorySupport getFactoryInstance(ReactiveCassandraOperations operations) Creates and initializes aRepositoryFactorySupport
instance.- Parameters:
operations
-- Returns:
-
afterPropertiesSet
public void afterPropertiesSet()
-