Module spring.data.mongodb
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:
Aware,BeanClassLoaderAware,BeanFactoryAware,EnvironmentAware,EnvironmentCapable
Factory to create
ReactiveMongoRepository instances.- Since:
- 2.0
- Author:
- Mark Paluch, Christoph Strobl, Oliver Gierke
-
Constructor Summary
ConstructorsConstructorDescriptionReactiveMongoRepositoryFactory(ReactiveMongoOperations mongoOperations) Creates a newReactiveMongoRepositoryFactorywith the givenReactiveMongoOperations. -
Method Summary
Modifier and TypeMethodDescription<T,ID> MongoEntityInformation<T, ID> getEntityInformation(Class<T> domainClass) protected ProjectionFactorygetProjectionFactory(ClassLoader classLoader, BeanFactory beanFactory) protected Optional<QueryLookupStrategy>getQueryLookupStrategy(QueryLookupStrategy.Key key, ValueExpressionDelegate valueExpressionDelegate) protected Class<?>getRepositoryBaseClass(RepositoryMetadata metadata) getRepositoryFragments(RepositoryMetadata metadata) protected ObjectgetTargetRepository(RepositoryInformation information) voidsetBeanClassLoader(ClassLoader classLoader) Methods inherited from class org.springframework.data.repository.core.support.ReactiveRepositoryFactorySupport
setEvaluationContextProvider, validateMethods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getEnvironment, getProjectionFactory, getQueryLookupStrategy, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanFactory, setEnvironment, setEvaluationContextProvider, setExposeMetadata, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass
-
Constructor Details
-
ReactiveMongoRepositoryFactory
Creates a newReactiveMongoRepositoryFactorywith the givenReactiveMongoOperations.- Parameters:
mongoOperations- must not be null.
-
-
Method Details
-
setBeanClassLoader
- Specified by:
setBeanClassLoaderin interfaceBeanClassLoaderAware- Overrides:
setBeanClassLoaderin classRepositoryFactorySupport
-
getProjectionFactory
- Overrides:
getProjectionFactoryin classRepositoryFactorySupport
-
getRepositoryBaseClass
- Specified by:
getRepositoryBaseClassin classRepositoryFactorySupport
-
getRepositoryFragments
protected RepositoryComposition.RepositoryFragments getRepositoryFragments(RepositoryMetadata metadata) - Overrides:
getRepositoryFragmentsin classRepositoryFactorySupport
-
getTargetRepository
- Specified by:
getTargetRepositoryin classRepositoryFactorySupport
-
getQueryLookupStrategy
protected Optional<QueryLookupStrategy> getQueryLookupStrategy(QueryLookupStrategy.Key key, ValueExpressionDelegate valueExpressionDelegate) - Overrides:
getQueryLookupStrategyin classReactiveRepositoryFactorySupport
-
getEntityInformation
- Specified by:
getEntityInformationin classRepositoryFactorySupport
-