@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties(value={org.springframework.boot.autoconfigure.mongo.MongoProperties.class,EmbeddedMongoProperties.class})
@AutoConfigureBefore(value={org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class,org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration.class})
@ConditionalOnClass(value={com.mongodb.MongoClientSettings.class,de.flapdoodle.embed.mongo.transitions.Mongod.class})
@Import(value={de.flapdoodle.embed.mongo.spring.autoconfigure.EmbeddedMongoAutoConfiguration.EmbeddedMongoClientDependsOnBeanFactoryPostProcessor.class,de.flapdoodle.embed.mongo.spring.autoconfigure.EmbeddedMongoAutoConfiguration.EmbeddedReactiveStreamsMongoClientDependsOnBeanFactoryPostProcessor.class})
public class EmbeddedMongoAutoConfiguration
extends Object
Auto-configuration for Embedded Mongo.
copy of @EmbeddedMongoAutoConfiguration| Constructor and Description |
|---|
EmbeddedMongoAutoConfiguration(org.springframework.boot.autoconfigure.mongo.MongoProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
MongodWrapper |
embeddedMongod(org.springframework.context.ApplicationContext context,
EmbeddedMongoProperties embeddedProperties,
de.flapdoodle.embed.mongo.transitions.ImmutableMongod immutableMongod,
de.flapdoodle.embed.mongo.commands.MongodArguments mongodArguments,
de.flapdoodle.embed.process.io.ProcessOutput processOutput,
de.flapdoodle.embed.process.io.progress.ProgressListener progressListener) |
de.flapdoodle.embed.mongo.transitions.ImmutableMongod |
mongod() |
de.flapdoodle.embed.mongo.commands.MongodArguments |
mongodArguments(EmbeddedMongoProperties embeddedProperties,
org.springframework.boot.autoconfigure.mongo.MongoProperties mongoProperties) |
de.flapdoodle.embed.process.io.ProcessOutput |
processOutput() |
de.flapdoodle.embed.process.io.progress.ProgressListener |
progressListener() |
public EmbeddedMongoAutoConfiguration(org.springframework.boot.autoconfigure.mongo.MongoProperties properties)
@Bean(initMethod="start",
destroyMethod="stop")
@ConditionalOnMissingBean
public MongodWrapper embeddedMongod(org.springframework.context.ApplicationContext context,
EmbeddedMongoProperties embeddedProperties,
de.flapdoodle.embed.mongo.transitions.ImmutableMongod immutableMongod,
de.flapdoodle.embed.mongo.commands.MongodArguments mongodArguments,
de.flapdoodle.embed.process.io.ProcessOutput processOutput,
de.flapdoodle.embed.process.io.progress.ProgressListener progressListener)
throws IOException
IOException@Bean @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.transitions.ImmutableMongod mongod()
@Bean @ConditionalOnMissingBean public de.flapdoodle.embed.process.io.progress.ProgressListener progressListener()
@Bean @ConditionalOnMissingBean public de.flapdoodle.embed.process.io.ProcessOutput processOutput()
@Bean @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.commands.MongodArguments mongodArguments(EmbeddedMongoProperties embeddedProperties, org.springframework.boot.autoconfigure.mongo.MongoProperties mongoProperties)
Copyright © 2022. All rights reserved.