/**
 * ***************************************************************************** Copyright (c)
 * 2016-2017 Rogue Wave Software, Inc. 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
 *
 * <p>Contributors: Rogue Wave Software, Inc. - initial API and implementation
 * *****************************************************************************
 */
package org.eclipse.che.plugin.composer.server;

import static com.google.inject.multibindings.Multibinder.newSetBinder;

import com.google.inject.AbstractModule;
import com.google.inject.multibindings.Multibinder;
import org.eclipse.che.api.project.server.handlers.ProjectHandler;
import org.eclipse.che.api.project.server.type.ProjectTypeDef;
import org.eclipse.che.api.project.server.type.ValueProviderFactory;
import org.eclipse.che.plugin.composer.server.executor.ComposerJsonRpcMessenger;
import org.eclipse.che.plugin.composer.server.projecttype.ComposerProjectGenerator;
import org.eclipse.che.plugin.composer.server.projecttype.ComposerProjectInitializer;
import org.eclipse.che.plugin.composer.server.projecttype.ComposerProjectType;
import org.eclipse.che.plugin.composer.server.projecttype.ComposerValueProviderFactory;

/**
 * The module that contains configuration of the server side part of the Composer extension.
 *
 * @author Kaloyan Raev
 */
// FIXME: spi
//@DynaModule
public class ComposerModule extends AbstractModule {

  /** {@inheritDoc} */
  @Override
  protected void configure() {
    Multibinder<ProjectTypeDef> projectTypeMultibinder =
        newSetBinder(binder(), ProjectTypeDef.class);
    projectTypeMultibinder.addBinding().to(ComposerProjectType.class);

    Multibinder<ValueProviderFactory> valueProviderMultibinder =
        newSetBinder(binder(), ValueProviderFactory.class);
    valueProviderMultibinder.addBinding().to(ComposerValueProviderFactory.class);

    Multibinder<ProjectHandler> projectHandlerMultibinder =
        newSetBinder(binder(), ProjectHandler.class);
    projectHandlerMultibinder.addBinding().to(ComposerProjectGenerator.class);
    projectHandlerMultibinder.addBinding().to(ComposerProjectInitializer.class);

    bind(ComposerJsonRpcMessenger.class);
  }
}

@@ -952,16 +952,58 @@
 actory;%0A
+import org.eclipse.che.inject.DynaModule;%0A
 import o
@@ -1545,24 +1545,8 @@
  */%0A
-// FIXME: spi%0A//
 @Dyn

Add Composer dyna-module