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

org.webpieces.plugins.properties.PropertiesPlugin Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
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()
		);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy