
WEBPIECESxPACKAGE.meta.DeveloperMeta Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of WEBPIECESxAPPNAME-dev Show documentation
Show all versions of WEBPIECESxAPPNAME-dev 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
package WEBPIECESxPACKAGE.meta;
import java.util.List;
import java.util.Map;
import org.webpieces.plugins.documentation.DocumentationConfig;
import org.webpieces.plugins.documentation.WebpiecesDocumentationPlugin;
import org.webpieces.plugins.hsqldb.H2DbConfig;
import org.webpieces.plugins.hsqldb.H2DbPlugin;
import org.webpieces.router.api.plugins.Plugin;
import org.webpieces.router.api.routes.Routes;
import org.webpieces.router.api.routes.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 SQL GUI to use http://localhost:9000/@db
//so the in-memory H2 DB can be queried to debug issues with your application code
new H2DbPlugin(new H2DbConfig()),
new WebpiecesDocumentationPlugin(new DocumentationConfig())
);
prodPlugins.addAll(devPlugins);
return prodPlugins;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy