@Configuration(proxyBeanMethods=false) @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) |
Modifier and Type | Method and Description |
---|---|
de.flapdoodle.embed.mongo.config.IMongodConfig |
embeddedMongoConfiguration(EmbeddedMongoProperties embeddedProperties) |
de.flapdoodle.embed.mongo.MongodExecutable |
embeddedMongoServer(de.flapdoodle.embed.mongo.config.IMongodConfig mongodConfig,
de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig,
org.springframework.context.ApplicationContext context) |
public EmbeddedMongoAutoConfiguration(MongoProperties properties, EmbeddedMongoProperties embeddedProperties)
@Bean(initMethod="start", destroyMethod="stop") @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.MongodExecutable embeddedMongoServer(de.flapdoodle.embed.mongo.config.IMongodConfig mongodConfig, de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig, org.springframework.context.ApplicationContext context) throws IOException
IOException
@Bean @ConditionalOnMissingBean public de.flapdoodle.embed.mongo.config.IMongodConfig embeddedMongoConfiguration(EmbeddedMongoProperties embeddedProperties) throws IOException
IOException
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.