org.webpieces.plugins.hsqldb.H2DbController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of h2db-plugin Show documentation
Show all versions of h2db-plugin Show documentation
Someone forgot to fill this in. See http://stackoverflow.com/questions/38272550/how-to-fail-the-gradle-build-if-subproject-is-missing-a-property
The newest version!
package org.webpieces.plugins.hsqldb;
import javax.inject.Inject;
import javax.inject.Singleton;
import org.webpieces.router.api.actions.Actions;
import org.webpieces.router.api.actions.Render;
@Singleton
public class H2DbController {
private H2DbConfig config;
@Inject
public H2DbController(H2DbConfig config) {
this.config = config;
}
public Render databaseGui() {
return Actions.renderThis("port", config.getPort());
//return Actions.redirectToUrl("http://localhost:"+config.getPort());
}
}