/*******************************************************************************
 * Copyright (c) 2014 Codenvy, S.A.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Codenvy, S.A. - initial API and implementation
 *******************************************************************************/
package com.codenvy.flux.watcher.core;

import com.codenvy.flux.watcher.core.internal.EntryCreatedListener;
import com.codenvy.flux.watcher.core.internal.GetProjectRequestHandler;
import com.codenvy.flux.watcher.core.internal.GetResourceRequestHandler;
import com.google.inject.AbstractModule;
import com.google.inject.multibindings.Multibinder;

/**
 * Guice bindings for {@link com.codenvy.flux.watcher.core.FluxRepositoryModule}.
 *
 * @author Kevin Pollet
 */
public class FluxRepositoryModule extends AbstractModule {
    @Override
    protected void configure() {
        bind(FluxRepository.class);
        bind(FluxConnector.class);
        bind(RepositoryEventBus.class);


        // message handler bindings
        final Multibinder<MessageHandler> messageHandlerBinder = Multibinder.newSetBinder(binder(), MessageHandler.class);
        messageHandlerBinder.addBinding().to(GetResourceRequestHandler.class);
        messageHandlerBinder.addBinding().to(GetProjectRequestHandler.class);

        // repository listener bindings
        final Multibinder<RepositoryListener> repositoryListenerBinder = Multibinder.newSetBinder(binder(), RepositoryListener.class);
        repositoryListenerBinder.addBinding().to(EntryCreatedListener.class);
    }
}

@@ -1285,22 +1285,17 @@
 eHandler
-Binder
+s
  = Multi
@@ -1361,38 +1361,33 @@
   messageHandler
-Binder
+s
 .addBinding().to
@@ -1443,22 +1443,17 @@
 eHandler
-Binder
+s
 .addBind
@@ -1599,22 +1599,17 @@
 Listener
-Binder
+s
  = Multi
@@ -1691,22 +1691,17 @@
 Listener
-Binder
+s
 .addBind

Rename Guice module variables