Class ReactiveMongoRepositoryFactory
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.repository.core.support.ReactiveRepositoryFactorySupport
org.springframework.data.mongodb.repository.support.ReactiveMongoRepositoryFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
Factory to create
ReactiveMongoRepository
instances.- Since:
- 2.0
- Author:
- Mark Paluch, Christoph Strobl, Oliver Gierke
-
Constructor Summary
ConstructorsConstructorDescriptionReactiveMongoRepositoryFactory
(ReactiveMongoOperations mongoOperations) Creates a newReactiveMongoRepositoryFactory
with the givenReactiveMongoOperations
. -
Method Summary
Modifier and TypeMethodDescription<T,
ID> MongoEntityInformation<T, ID> getEntityInformation
(Class<T> domainClass) protected ProjectionFactory
getProjectionFactory
(ClassLoader classLoader, org.springframework.beans.factory.BeanFactory beanFactory) protected Optional<QueryLookupStrategy>
getQueryLookupStrategy
(QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider evaluationContextProvider) protected Class<?>
getRepositoryBaseClass
(RepositoryMetadata metadata) getRepositoryFragments
(RepositoryMetadata metadata) protected Object
getTargetRepository
(RepositoryInformation information) Methods inherited from class org.springframework.data.repository.core.support.ReactiveRepositoryFactorySupport
setEvaluationContextProvider, validate
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanClassLoader, setBeanFactory, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass
-
Constructor Details
-
ReactiveMongoRepositoryFactory
Creates a newReactiveMongoRepositoryFactory
with the givenReactiveMongoOperations
.- Parameters:
mongoOperations
- must not be null.
-
-
Method Details
-
getProjectionFactory
protected ProjectionFactory getProjectionFactory(ClassLoader classLoader, org.springframework.beans.factory.BeanFactory beanFactory) - Overrides:
getProjectionFactory
in classRepositoryFactorySupport
-
getRepositoryBaseClass
- Specified by:
getRepositoryBaseClass
in classRepositoryFactorySupport
-
getRepositoryFragments
protected RepositoryComposition.RepositoryFragments getRepositoryFragments(RepositoryMetadata metadata) - Overrides:
getRepositoryFragments
in classRepositoryFactorySupport
-
getTargetRepository
- Specified by:
getTargetRepository
in classRepositoryFactorySupport
-
getQueryLookupStrategy
protected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider evaluationContextProvider) - Overrides:
getQueryLookupStrategy
in classRepositoryFactorySupport
-
getEntityInformation
- Specified by:
getEntityInformation
in classRepositoryFactorySupport
-