package org.jboss.elasticsearch.river.jira;

import org.elasticsearch.action.ActionModule;
import org.elasticsearch.river.River;
import org.jboss.elasticsearch.river.jira.mgm.fullupdate.FullUpdateAction;
import org.jboss.elasticsearch.river.jira.mgm.fullupdate.TransportFullUpdateAction;
import org.jboss.elasticsearch.river.jira.mgm.lifecycle.JRLifecycleAction;
import org.jboss.elasticsearch.river.jira.mgm.lifecycle.TransportJRLifecycleAction;
import org.jboss.elasticsearch.river.jira.mgm.riverslist.ListRiversAction;
import org.jboss.elasticsearch.river.jira.mgm.riverslist.TransportListRiversAction;
import org.jboss.elasticsearch.river.jira.mgm.state.JRStateAction;
import org.jboss.elasticsearch.river.jira.mgm.state.TransportJRStateAction;

/**
 * JIRA River ElasticSearch Module class.
 * 
 * @author Vlastimil Elias (velias at redhat dot com)
 */
public class JiraRiverModule extends ActionModule {

  public JiraRiverModule() {
    super(true);
  }

  @Override
  protected void configure() {
    bind(River.class).to(JiraRiver.class).asEagerSingleton();
    registerAction(FullUpdateAction.INSTANCE, TransportFullUpdateAction.class);
    registerAction(JRStateAction.INSTANCE, TransportJRStateAction.class);
    registerAction(JRLifecycleAction.INSTANCE, TransportJRLifecycleAction.class);
    registerAction(ListRiversAction.INSTANCE, TransportListRiversAction.class);
  }
}

@@ -1064,324 +1064,8 @@
 ();%0A
-    registerAction(FullUpdateAction.INSTANCE, TransportFullUpdateAction.class);%0A    registerAction(JRStateAction.INSTANCE, TransportJRStateAction.class);%0A    registerAction(JRLifecycleAction.INSTANCE, TransportJRLifecycleAction.class);%0A    registerAction(ListRiversAction.INSTANCE, TransportListRiversAction.class);%0A
   %7D%0A

Remove duplicit action registration from Module configuration() method. Also closes #25.