@Requires(classes=de.flapdoodle.embed.mongo.MongodProcess.class) @Requires(beans=DefaultReactiveMongoConfiguration.class) @Requires(env="test") @Requires(property="mongodb.embedded.enabled",notEquals="false",defaultValue="true") @Singleton public class ReactiveMongoProcessFactory extends Object implements BeanCreatedEventListener<DefaultReactiveMongoConfiguration>, Closeable
MongodProcess if the class is on the classpath and the server is not configured.| Constructor and Description |
|---|
ReactiveMongoProcessFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DefaultReactiveMongoConfiguration |
onCreated(BeanCreatedEvent<DefaultReactiveMongoConfiguration> event)
Fired when a bean is created and all
PostConstruct initialization hooks have been
called. |
public DefaultReactiveMongoConfiguration onCreated(BeanCreatedEvent<DefaultReactiveMongoConfiguration> event)
BeanCreatedEventListenerPostConstruct initialization hooks have been
called.onCreated in interface BeanCreatedEventListener<DefaultReactiveMongoConfiguration>event - The bean created event@PreDestroy public void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOException