Class ReactiveFirestoreRepositoryFactory
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.repository.core.support.ReactiveRepositoryFactorySupport
com.google.cloud.spring.data.firestore.repository.support.ReactiveFirestoreRepositoryFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.context.EnvironmentAware,org.springframework.core.env.EnvironmentCapable
public class ReactiveFirestoreRepositoryFactory
extends org.springframework.data.repository.core.support.ReactiveRepositoryFactorySupport
A factory for reactive Firestore repositories.
- Since:
- 1.2
-
Constructor Summary
ConstructorsConstructorDescriptionReactiveFirestoreRepositoryFactory(FirestoreTemplate firestoreTemplate, FirestoreMappingContext firestoreMappingContext) Constructor. -
Method Summary
Modifier and TypeMethodDescription<T,I> org.springframework.data.repository.core.EntityInformation<T, I> getEntityInformation(Class<T> clazz) 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 repositoryMetadata) protected ObjectgetTargetRepository(org.springframework.data.repository.core.RepositoryInformation repositoryInformation) Methods inherited from class org.springframework.data.repository.core.support.ReactiveRepositoryFactorySupport
getQueryLookupStrategy, setEvaluationContextProvider, validateMethods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getEnvironment, getProjectionFactory, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanClassLoader, setBeanFactory, setEnvironment, setEvaluationContextProvider, setExposeMetadata, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass
-
Constructor Details
-
ReactiveFirestoreRepositoryFactory
public ReactiveFirestoreRepositoryFactory(FirestoreTemplate firestoreTemplate, FirestoreMappingContext firestoreMappingContext) Constructor.- Parameters:
firestoreTemplate- the template that will be used by created repositories.firestoreMappingContext- the mapping context used to look up type metadata.
-
-
Method Details
-
getEntityInformation
public <T,I> org.springframework.data.repository.core.EntityInformation<T,I> getEntityInformation(Class<T> clazz) - Specified by:
getEntityInformationin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getTargetRepository
protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation repositoryInformation) - Specified by:
getTargetRepositoryin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getRepositoryBaseClass
protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata) - Specified by:
getRepositoryBaseClassin 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:
getQueryLookupStrategyin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-