Class EmbeddedMongoAutoConfiguration
java.lang.Object
de.flapdoodle.embed.mongo.spring.autoconfigure.EmbeddedMongoAutoConfiguration
@AutoConfiguration(before={org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class,org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration.class})
@EnableConfigurationProperties({org.springframework.boot.autoconfigure.mongo.MongoProperties.class,EmbeddedMongoProperties.class})
@AutoConfigureBefore({org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class,org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration.class})
@ConditionalOnClass({com.mongodb.MongoClientSettings.class,de.flapdoodle.embed.mongo.transitions.Mongod.class})
@Import({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.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.beans.factory.config.BeanPostProcessorfixTransactionAndAuth(EmbeddedMongoProperties embeddedProperties, org.springframework.boot.autoconfigure.mongo.MongoProperties mongoProperties) de.flapdoodle.embed.mongo.transitions.Mongodmongod(de.flapdoodle.embed.mongo.commands.MongodArguments mongodArguments, de.flapdoodle.embed.process.io.ProcessOutput processOutput, de.flapdoodle.embed.mongo.config.Net net, de.flapdoodle.embed.process.io.progress.ProgressListener progressListener, EmbeddedMongoProperties embeddedProperties) de.flapdoodle.embed.mongo.commands.MongodArgumentsde.flapdoodle.embed.mongo.config.Netnet(org.springframework.context.ApplicationContext context, org.springframework.boot.autoconfigure.mongo.MongoProperties properties) de.flapdoodle.embed.process.io.ProcessOutputde.flapdoodle.embed.process.io.progress.ProgressListenerorg.springframework.beans.factory.config.BeanPostProcessorde.flapdoodle.embed.mongo.distribution.IFeatureAwareVersionversion(EmbeddedMongoProperties embeddedProperties)
-
Constructor Details
-
EmbeddedMongoAutoConfiguration
public EmbeddedMongoAutoConfiguration()
-
-
Method Details
-
version
@Bean @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.distribution.IFeatureAwareVersion version(EmbeddedMongoProperties embeddedProperties) -
setHostAndPortToMongoProperties
@Bean public org.springframework.beans.factory.config.BeanPostProcessor setHostAndPortToMongoProperties() -
net
@Bean public de.flapdoodle.embed.mongo.config.Net net(org.springframework.context.ApplicationContext context, org.springframework.boot.autoconfigure.mongo.MongoProperties properties) throws IOException - Throws:
IOException
-
mongod
@Bean @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.transitions.Mongod mongod(de.flapdoodle.embed.mongo.commands.MongodArguments mongodArguments, de.flapdoodle.embed.process.io.ProcessOutput processOutput, de.flapdoodle.embed.mongo.config.Net net, de.flapdoodle.embed.process.io.progress.ProgressListener progressListener, EmbeddedMongoProperties embeddedProperties) -
progressListener
@Bean @ConditionalOnMissingBean public de.flapdoodle.embed.process.io.progress.ProgressListener progressListener() -
processOutput
@Bean @ConditionalOnMissingBean public de.flapdoodle.embed.process.io.ProcessOutput processOutput() -
mongodArguments
@Bean @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.commands.MongodArguments mongodArguments() -
fixTransactionAndAuth
@Bean public org.springframework.beans.factory.config.BeanPostProcessor fixTransactionAndAuth(EmbeddedMongoProperties embeddedProperties, org.springframework.boot.autoconfigure.mongo.MongoProperties mongoProperties)
-