io.github.sinri.drydock.naval.raider.Privateer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of DryDock Show documentation
Show all versions of DryDock Show documentation
Prototype Library for Keel Based Java Projects.
The newest version!
package io.github.sinri.drydock.naval.raider;
import io.github.sinri.keel.tesuto.KeelTest;
import io.vertx.core.Future;
import javax.annotation.Nonnull;
import static io.github.sinri.keel.facade.KeelInstance.Keel;
/**
* @since 1.2.0
*/
abstract public class Privateer extends KeelTest {
protected void loadLocalConfiguration() {
Keel.getConfiguration().loadPropertiesFile("config.properties");
}
/**
* 本地配置已加载。
* 准备数据库连接之类的东西。
*
* @since 1.2.0
*/
@Nonnull
abstract protected Future prepareEnvironment();
/**
* Override it, if you need more initialization.
*/
@Nonnull
@Override
protected final Future starting() {
loadLocalConfiguration();
return prepareEnvironment();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy