@Configuration @ConditionalOnClass(value=com.mongodb.reactivestreams.client.MongoClient.class) @EnableConfigurationProperties(value=MongoProperties.class) public class MongoReactiveAutoConfiguration extends Object
Auto-configuration
for Reactive Mongo.Constructor and Description |
---|
MongoReactiveAutoConfiguration(MongoProperties properties,
ObjectProvider<com.mongodb.async.client.MongoClientSettings> settings,
Environment environment,
ObjectProvider<List<MongoClientSettingsBuilderCustomizer>> builderCustomizers) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
com.mongodb.reactivestreams.client.MongoClient |
reactiveStreamsMongoClient() |
public MongoReactiveAutoConfiguration(MongoProperties properties, ObjectProvider<com.mongodb.async.client.MongoClientSettings> settings, Environment environment, ObjectProvider<List<MongoClientSettingsBuilderCustomizer>> builderCustomizers)
@PreDestroy public void close()
@Bean @ConditionalOnMissingBean public com.mongodb.reactivestreams.client.MongoClient reactiveStreamsMongoClient()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.