// Path: src/main/java/org/elasticsearch/river/nvd/NvdRiverModule.java
// public class NvdRiverModule extends AbstractModule {
// 
// 	@Override
// 	protected void configure() {
// 		bind(River.class).to(NvdRiver.class).asEagerSingleton();
// 	}
// 
// }


import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.inject.Module;
import org.elasticsearch.plugins.AbstractPlugin;
import org.elasticsearch.river.RiversModule;
import org.elasticsearch.river.nvd.NvdRiverModule;
package org.elasticsearch.plugin.river.nvd;


/**
 * @author Florian Rosenberg
 */
public class NvdRiverPlugin extends AbstractPlugin {

	@Inject
	public NvdRiverPlugin() {
	}

	@Override
	public String name() {
		return "river-nvd";
	}

	@Override
	public String description() {
		return "River NVD Plugin";
	}

	@Override
	public void processModule(Module module) {
		if (module instanceof RiversModule) {
// Path: src/main/java/org/elasticsearch/river/nvd/NvdRiverModule.java
// public class NvdRiverModule extends AbstractModule {
// 
// 	@Override
// 	protected void configure() {
// 		bind(River.class).to(NvdRiver.class).asEagerSingleton();
// 	}
// 
// }


// Path: src/main/java/org/elasticsearch/plugin/river/nvd/NvdRiverPlugin.java
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.inject.Module;
import org.elasticsearch.plugins.AbstractPlugin;
import org.elasticsearch.river.RiversModule;
import org.elasticsearch.river.nvd.NvdRiverModule;

package org.elasticsearch.plugin.river.nvd;


/**
 * @author Florian Rosenberg
 */
public class NvdRiverPlugin extends AbstractPlugin {

	@Inject
	public NvdRiverPlugin() {
	}

	@Override
	public String name() {
		return "river-nvd";
	}

	@Override
	public String description() {
		return "River NVD Plugin";
	}

	@Override
	public void processModule(Module module) {
		if (module instanceof RiversModule) {
			((RiversModule) module).registerRiver("nvd", NvdRiverModule.class);