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

WEBPIECESxPACKAGE.meta.DeveloperMeta 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

There is a newer version: 2.1.28
Show newest version
package WEBPIECESxPACKAGE.meta;

import java.util.List;
import java.util.Map;

import org.webpieces.plugins.hsqldb.H2DbPlugin;
import org.webpieces.router.api.routing.Plugin;
import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.api.routing.WebAppMeta;

import com.google.common.collect.Lists;
import com.google.inject.Module;

import WEBPIECESxPACKAGE.base.WEBPIECESxCLASSMeta;

public class DeveloperMeta implements WebAppMeta {

	private WEBPIECESxCLASSMeta prodMeta = new WEBPIECESxCLASSMeta();
	
	@Override
	public void initialize(Map props) {
		prodMeta.initialize(props);
	}
	
	@Override
	public List getGuiceModules() {
		return prodMeta.getGuiceModules();
	}

	@Override
	public List getRouteModules() {
		return prodMeta.getRouteModules();
	}

	@Override
	public List getPlugins() {
		List prodPlugins = prodMeta.getPlugins();
		List devPlugins = Lists.newArrayList(
				//This is only for the development server to expose a GUI to use http://localhost:9000/@db
				new H2DbPlugin()
				);

		prodPlugins.addAll(devPlugins);
		
		return prodPlugins;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy