@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(org.springframework.beans.factory.ObjectProvider<com.mongodb.async.client.MongoClientSettings> settings) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
com.mongodb.reactivestreams.client.MongoClient |
reactiveStreamsMongoClient(MongoProperties properties,
org.springframework.core.env.Environment environment,
org.springframework.beans.factory.ObjectProvider<List<MongoClientSettingsBuilderCustomizer>> builderCustomizers) |
public MongoReactiveAutoConfiguration(org.springframework.beans.factory.ObjectProvider<com.mongodb.async.client.MongoClientSettings> settings)
@PreDestroy public void close()
@Bean @ConditionalOnMissingBean public com.mongodb.reactivestreams.client.MongoClient reactiveStreamsMongoClient(MongoProperties properties, org.springframework.core.env.Environment environment, org.springframework.beans.factory.ObjectProvider<List<MongoClientSettingsBuilderCustomizer>> builderCustomizers)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.