@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 Object implements BeanCreatedEventListener<DefaultMongoConfiguration>, Closeable
| Constructor and Description |
|---|
MongoProcessFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DefaultMongoConfiguration |
onCreated(BeanCreatedEvent<DefaultMongoConfiguration> event)
Fired when a bean is created and all
PostConstruct initialization hooks have been
called. |
public DefaultMongoConfiguration onCreated(BeanCreatedEvent<DefaultMongoConfiguration> event)
BeanCreatedEventListenerPostConstruct initialization hooks have been
called.onCreated in interface BeanCreatedEventListener<DefaultMongoConfiguration>event - The bean created event@PreDestroy public void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOException