/*******************************************************************************
* Copyright (c) 2012-2016 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 org.eclipse.che.ide.extension.maven.client.inject;
import com.google.gwt.inject.client.AbstractGinModule;
import com.google.gwt.inject.client.multibindings.GinMultibinder;
import org.eclipse.che.ide.api.extension.ExtensionGinModule;
import org.eclipse.che.ide.api.project.node.interceptor.NodeInterceptor;
import org.eclipse.che.ide.api.project.type.wizard.ProjectWizardRegistrar;
import org.eclipse.che.ide.extension.machine.client.command.CommandType;
import org.eclipse.che.ide.extension.maven.client.command.MavenCommandType;
import org.eclipse.che.ide.extension.maven.client.project.MavenContentRootInterceptor;
import org.eclipse.che.ide.extension.maven.client.project.MavenExternalLibrariesInterceptor;
import org.eclipse.che.ide.extension.maven.client.project.PomNodeInterceptor;
import org.eclipse.che.ide.extension.maven.client.wizard.MavenProjectWizardRegistrar;
/**
* GIN module for Maven extension.
*
* @author Andrey Plotnikov
* @author Artem Zatsarynnyi
*/
@ExtensionGinModule
public class MavenGinModule extends AbstractGinModule {
/** {@inheritDoc} */
@Override
protected void configure() {
GinMultibinder.newSetBinder(binder(), ProjectWizardRegistrar.class).addBinding().to(MavenProjectWizardRegistrar.class);
GinMultibinder.newSetBinder(binder(), CommandType.class).addBinding().to(MavenCommandType.class);
GinMultibinder.newSetBinder(binder(), NodeInterceptor.class).addBinding().to(MavenContentRootInterceptor.class);
GinMultibinder.newSetBinder(binder(), NodeInterceptor.class).addBinding().to(MavenExternalLibrariesInterceptor.class);
GinMultibinder.newSetBinder(binder(), NodeInterceptor.class).addBinding().to(PomNodeInterceptor.class);
}
}