Class MongoProcessFactory
java.lang.Object
io.micronaut.configuration.mongo.core.test.AbstractMongoProcessFactory
io.micronaut.configuration.mongo.core.test.MongoProcessFactory
- All Implemented Interfaces:
io.micronaut.context.event.BeanCreatedEventListener<DefaultMongoConfiguration>
,Closeable
,AutoCloseable
,EventListener
@Requires(classes=de.flapdoodle.embed.mongo.MongodProcess.class) @Requires(beans=DefaultMongoConfiguration.class) @Requires(env="test") @Requires(property="mongodb.embedded.enabled",notEquals="false",defaultValue="true")
@Singleton
public class MongoProcessFactory
extends AbstractMongoProcessFactory
implements io.micronaut.context.event.BeanCreatedEventListener<DefaultMongoConfiguration>, Closeable
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from class io.micronaut.configuration.mongo.core.test.AbstractMongoProcessFactory
process
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
onCreated
(io.micronaut.context.event.BeanCreatedEvent<DefaultMongoConfiguration> event) Methods inherited from class io.micronaut.configuration.mongo.core.test.AbstractMongoProcessFactory
startEmbeddedMongoIfPossible
-
Constructor Details
-
MongoProcessFactory
public MongoProcessFactory()
-
-
Method Details
-
onCreated
public DefaultMongoConfiguration onCreated(io.micronaut.context.event.BeanCreatedEvent<DefaultMongoConfiguration> event) - Specified by:
onCreated
in interfaceio.micronaut.context.event.BeanCreatedEventListener<DefaultMongoConfiguration>
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-