@Configuration public abstract class AbstractReactiveMongoConfiguration extends MongoConfigurationSupport
MongoConfigurationSupport| Constructor and Description |
|---|
AbstractReactiveMongoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
MappingMongoConverter |
mappingMongoConverter()
Creates a
MappingMongoConverter using the configured reactiveMongoDbFactory() and
MongoConfigurationSupport.mongoMappingContext(). |
abstract com.mongodb.reactivestreams.client.MongoClient |
reactiveMongoClient()
Return the Reactive Streams
MongoClient instance to connect to. |
ReactiveMongoDatabaseFactory |
reactiveMongoDbFactory()
Creates a
ReactiveMongoDatabaseFactory to be used by the ReactiveMongoOperations. |
ReactiveMongoOperations |
reactiveMongoTemplate()
Creates
ReactiveMongoOperations. |
abbreviateFieldNames, customConversions, fieldNamingStrategy, getDatabaseName, getInitialEntitySet, getMappingBasePackages, isNewStrategyFactory, mongoMappingContext, scanForEntitiespublic abstract com.mongodb.reactivestreams.client.MongoClient reactiveMongoClient()
MongoClient instance to connect to. Annotate with Bean in case you want
to expose a MongoClient instance to the ApplicationContext.@Bean public ReactiveMongoOperations reactiveMongoTemplate() throws Exception
ReactiveMongoOperations.Exception@Bean public ReactiveMongoDatabaseFactory reactiveMongoDbFactory()
ReactiveMongoDatabaseFactory to be used by the ReactiveMongoOperations. Will use the
MongoClient instance configured in reactiveMongoClient().reactiveMongoClient(),
reactiveMongoTemplate()@Bean public MappingMongoConverter mappingMongoConverter() throws Exception
MappingMongoConverter using the configured reactiveMongoDbFactory() and
MongoConfigurationSupport.mongoMappingContext(). Will get MongoConfigurationSupport.customConversions() applied.ExceptionMongoConfigurationSupport.customConversions(),
MongoConfigurationSupport.mongoMappingContext(),
reactiveMongoDbFactory()Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.