org.webpieces.plugins.hsqldb.H2DbPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-h2db Show documentation
Show all versions of plugin-h2db Show documentation
Webpieces in-memory database plugin
package org.webpieces.plugins.hsqldb;
import java.util.List;
import org.webpieces.router.api.plugins.Plugin;
import org.webpieces.router.api.routes.Routes;
import com.google.common.collect.Lists;
import com.google.inject.Module;
public class H2DbPlugin implements Plugin {
private H2DbConfig config;
public H2DbPlugin(H2DbConfig config) {
this.config = config;
}
@Override
public List getGuiceModules() {
return Lists.newArrayList(new H2DbModule(config));
}
@Override
public List getRouteModules() {
return Lists.newArrayList(new H2DbRoutes(config));
}
}