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