@Configuration @EnableConfigurationProperties(value={MongoProperties.class,EmbeddedMongoProperties.class}) @ConditionalOnClass(value={com.mongodb.Mongo.class,<error>}) 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. |
Constructor and Description |
---|
EmbeddedMongoAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
IMongodConfig |
embeddedMongoConfiguration() |
IRuntimeConfig |
embeddedMongoRuntimeConfig() |
MongodExecutable |
embeddedMongoServer(IMongodConfig mongodConfig) |
@Bean @ConditionalOnMissingBean @ConditionalOnClass(value=org.slf4j.Logger.class) public IRuntimeConfig embeddedMongoRuntimeConfig()
@Bean(initMethod="start", destroyMethod="stop") @ConditionalOnMissingBean public MongodExecutable embeddedMongoServer(IMongodConfig mongodConfig) throws IOException
IOException
@Bean @ConditionalOnMissingBean public IMongodConfig embeddedMongoConfiguration() throws IOException
IOException
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.