ReactiveCosmosRepositoryFactoryBean<T,S,K> Class
- java.
lang. Object - org.
springframework. data. repository. core. support. RepositoryFactoryBeanSupport - com.
azure. spring. data. cosmos. repository. support. ReactiveCosmosRepositoryFactoryBean<T,S,K>
- com.
- org.
Type Parameters
- T
the type of the repository.
- S
the domain type the repository manages.
- K
the type of the id of the entity the repository manages.
public class ReactiveCosmosRepositoryFactoryBean<T,S,K>
extends org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,K>
Adapter for Springs FactoryBean interface to allow easy setup of reactive cosmos repository factories via Spring configuration.
Constructor Summary
Constructor | Description |
---|---|
ReactiveCosmosRepositoryFactoryBean(Class<? extends T> repositoryInterface) |
Creates a new RepositoryFactoryBeanSupport for the given repository interface. |
Method Summary
Modifier and Type | Method and Description |
---|---|
void | afterPropertiesSet() |
protected final org.springframework.data.repository.core.support.RepositoryFactorySupport | createRepositoryFactory() |
protected org.springframework.data.repository.core.support.RepositoryFactorySupport |
getFactoryInstance()
Return the factory instance. |
protected void | setMappingContext(MappingContext<?,?> mappingContext) |
void |
setReactiveCosmosOperations(ReactiveCosmosOperations operations)
Set reactive CosmosDB operations |
Methods inherited from java.lang.Object
Methods inherited from org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport
Constructor Details
ReactiveCosmosRepositoryFactoryBean
public ReactiveCosmosRepositoryFactoryBean(Class repositoryInterface)
Creates a new RepositoryFactoryBeanSupport for the given repository interface.
Parameters:
Method Details
afterPropertiesSet
public void afterPropertiesSet()
Overrides:
ReactiveCosmosRepositoryFactoryBean<T,S,K>.afterPropertiesSet()createRepositoryFactory
protected final RepositoryFactorySupport createRepositoryFactory()
Overrides:
ReactiveCosmosRepositoryFactoryBean<T,S,K>.createRepositoryFactory()getFactoryInstance
protected RepositoryFactorySupport getFactoryInstance()
Return the factory instance.
Returns:
setMappingContext
protected void setMappingContext(MappingContext mappingContext)
Overrides:
ReactiveCosmosRepositoryFactoryBean<T,S,K>.setMappingContext(MappingContext<?,?> mappingContext)Parameters:
setReactiveCosmosOperations
public void setReactiveCosmosOperations(ReactiveCosmosOperations operations)
Set reactive CosmosDB operations
Parameters:
Applies to
Azure SDK for Java