All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webpieces.plugins.hsqldb.H2DbController Maven / Gradle / Ivy

Go to download

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());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy