org.webpieces.plugins.properties.PropertiesPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-properties Show documentation
Show all versions of plugin-properties Show documentation
Webpieces database backed property store
package org.webpieces.plugins.properties;
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 PropertiesPlugin implements Plugin {
public static final String PLUGIN_PROPERTIES_KEY = "org.webpieces.plugins.properties";
private PropertiesConfig config;
public PropertiesPlugin(PropertiesConfig config) {
super();
this.config = config;
}
@Override
public List getGuiceModules() {
return Lists.newArrayList(new PropertiesModule(config));
}
@Override
public List getRouteModules() {
return Lists.newArrayList(
new PropertiesRoutes()
);
}
}