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
public class ReactiveMongoRepositoryFactory
extends org.springframework.data.repository.core.support.ReactiveRepositoryFactorySupport
Factory to create
ReactiveMongoRepository
instances.- Since:
- 2.0
- Author:
- Mark Paluch, Christoph Strobl, Oliver Gierke
-
Constructor Summary
ConstructorDescriptionReactiveMongoRepositoryFactory
(ReactiveMongoOperations mongoOperations) Creates a newReactiveMongoRepositoryFactory
with the givenReactiveMongoOperations
. -
Method Summary
Modifier and TypeMethodDescription<T,
ID> MongoEntityInformation<T, ID> getEntityInformation
(Class<T> domainClass) protected org.springframework.data.projection.ProjectionFactory
getProjectionFactory
(ClassLoader classLoader, org.springframework.beans.factory.BeanFactory beanFactory) protected Optional<org.springframework.data.repository.query.QueryLookupStrategy>
getQueryLookupStrategy
(org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider) protected Class<?>
getRepositoryBaseClass
(org.springframework.data.repository.core.RepositoryMetadata metadata) protected org.springframework.data.repository.core.support.RepositoryComposition.RepositoryFragments
getRepositoryFragments
(org.springframework.data.repository.core.RepositoryMetadata metadata) protected Object
getTargetRepository
(org.springframework.data.repository.core.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 org.springframework.data.projection.ProjectionFactory getProjectionFactory(ClassLoader classLoader, org.springframework.beans.factory.BeanFactory beanFactory) - Overrides:
getProjectionFactory
in classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getRepositoryBaseClass
protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata) - Specified by:
getRepositoryBaseClass
in classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getRepositoryFragments
protected org.springframework.data.repository.core.support.RepositoryComposition.RepositoryFragments getRepositoryFragments(org.springframework.data.repository.core.RepositoryMetadata metadata) - Overrides:
getRepositoryFragments
in classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getTargetRepository
protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation information) - Specified by:
getTargetRepository
in classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getQueryLookupStrategy
protected Optional<org.springframework.data.repository.query.QueryLookupStrategy> getQueryLookupStrategy(@Nullable org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider) - Overrides:
getQueryLookupStrategy
in classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getEntityInformation
- Specified by:
getEntityInformation
in classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-