@Configuration @EnableConfigurationProperties(value={MongoProperties.class,EmbeddedMongoProperties.class}) @AutoConfigureBefore(value=MongoAutoConfiguration.class) @ConditionalOnClass(value={com.mongodb.MongoClient.class,de.flapdoodle.embed.mongo.MongodStarter.class}) public class EmbeddedMongoAutoConfiguration extends Object
Auto-configuration
for Embedded Mongo.Modifier and Type | Class and Description |
---|---|
protected static class |
EmbeddedMongoAutoConfiguration.EmbeddedMongoDependencyConfiguration
Additional configuration to ensure that
MongoClient beans depend on the
embeddedMongoServer bean. |
protected static class |
EmbeddedMongoAutoConfiguration.EmbeddedReactiveMongoDependencyConfiguration
Additional configuration to ensure that
MongoClient beans depend on the
embeddedMongoServer bean. |
Constructor and Description |
---|
EmbeddedMongoAutoConfiguration(MongoProperties properties,
EmbeddedMongoProperties embeddedProperties,
ApplicationContext context,
de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig) |
Modifier and Type | Method and Description |
---|---|
de.flapdoodle.embed.mongo.config.IMongodConfig |
embeddedMongoConfiguration() |
de.flapdoodle.embed.mongo.MongodExecutable |
embeddedMongoServer(de.flapdoodle.embed.mongo.config.IMongodConfig mongodConfig) |
public EmbeddedMongoAutoConfiguration(MongoProperties properties, EmbeddedMongoProperties embeddedProperties, ApplicationContext context, de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig)
@Bean(initMethod="start", destroyMethod="stop") @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.MongodExecutable embeddedMongoServer(de.flapdoodle.embed.mongo.config.IMongodConfig mongodConfig) throws IOException
IOException
@Bean @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.config.IMongodConfig embeddedMongoConfiguration() throws IOException
IOException
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.