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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.beans.factory.config.BeanPostProcessor
    fixTransactionAndAuth(EmbeddedMongoProperties embeddedProperties, org.springframework.boot.autoconfigure.mongo.MongoProperties mongoProperties)
     
    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)
     
    de.flapdoodle.embed.mongo.commands.MongodArguments
     
    de.flapdoodle.embed.mongo.config.Net
    net(org.springframework.context.ApplicationContext context, org.springframework.boot.autoconfigure.mongo.MongoProperties properties)
     
    de.flapdoodle.embed.process.io.ProcessOutput
     
    de.flapdoodle.embed.process.io.progress.ProgressListener
     
    org.springframework.beans.factory.config.BeanPostProcessor
     
    de.flapdoodle.embed.mongo.distribution.IFeatureAwareVersion
    version(EmbeddedMongoProperties embeddedProperties)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)