#1125 - ENH: Add a SpiContainerBootup API ... to enable automatic startup of docker containers (for testing usually)

This commit is contained in:
rob bygrave
2017-09-12 22:44:37 +12:00
parent ec8dd30a04
commit 7e8ed72b7b
2 changed files with 28 additions and 0 deletions
@@ -0,0 +1,18 @@
package io.ebeaninternal.api;
/**
* Plugin API available to invoke something prior to container bootup.
* <p>
* The initial intent is to provide a hook for 'docker-run' such that we can automatically ensure
* we have a test DB docker container running and setup ready to go.
* </p>
*/
public interface SpiContainerBootup {
/**
* Run something at bootup prior to the container starting.
*
* For example, start DB docker container(s).
*/
void bootup();
}