blob: 42a56c3df9865b7fa68798d83f66af352821e394 [file] [log] [blame]
/**
* Copyright (c) 2020-2021 Robert Bosch GmbH.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Robert Bosch GmbH - initial API and implementation
*/
package org.eclipse.app4mc.slg.ros2.artefacts;
import java.util.Properties;
import org.eclipse.app4mc.slg.commons.m2t.CustomObjectsStore;
import org.eclipse.app4mc.slg.commons.m2t.transformers.sw.ActivityGraphItemTransformer;
import org.eclipse.app4mc.slg.commons.m2t.transformers.sw.LabelTransformer;
import org.eclipse.app4mc.slg.commons.m2t.transformers.sw.RunnableTransformer;
import org.eclipse.app4mc.slg.commons.m2t.transformers.sw.TaskTransformer;
import org.eclipse.app4mc.slg.ros2.transformers.sw.RosActivityGraphItemTransformer;
import org.eclipse.app4mc.slg.ros2.transformers.sw.RosLabelTransformer;
import org.eclipse.app4mc.slg.ros2.transformers.sw.RosRunnableTransformer;
import org.eclipse.app4mc.slg.ros2.transformers.sw.RosTaskTransformer;
import com.google.inject.AbstractModule;
public class ROS2GoogleGuiceModule extends AbstractModule {
protected Properties properties;
public ROS2GoogleGuiceModule(Properties properties) {
this.properties = properties;
}
@Override
protected void configure() {
bind(Properties.class).toInstance(this.properties);
bind(CustomObjectsStore.class).toInstance(new CustomObjectsStore());
bind(LabelTransformer.class).to(RosLabelTransformer.class);
bind(RunnableTransformer.class).to(RosRunnableTransformer.class);
bind(TaskTransformer.class).to(RosTaskTransformer.class);
bind(ActivityGraphItemTransformer.class).to(RosActivityGraphItemTransformer.class);
}
}