blob: 9759d21d3b632093ae6c85d484f41f2cc7e0604c [file] [log] [blame]
/**
********************************************************************************
* Copyright (c) 2020 Robert Bosch GmbH and others.
*
* 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.transformation.application.base;
import java.util.List;
import org.eclipse.app4mc.transformation.extensions.base.templates.Model2ModelRootTransformer;
import org.eclipse.app4mc.transformation.extensions.base.templates.Model2TextRootTransformer;
import org.eclipse.app4mc.transformation.extensions.executiontype.IModelToModelConfig;
import org.eclipse.app4mc.transformation.extensions.executiontype.IModelToTextConfig;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
@Component(factory = "TRANSFORMER_FACTORY")
public class TransformerFactoryComponent {
@Reference
List<Model2ModelRootTransformer> m2mTransformers;
@Reference
List<Model2TextRootTransformer> m2tTransformers;
@Reference
List<IModelToModelConfig> allModelToModelConfig;
@Reference
List<IModelToTextConfig> allModelToTextConfig;
public List<Model2ModelRootTransformer> getAllM2MTransformers(){
return m2mTransformers;
}
public List<Model2TextRootTransformer> getAllM2TTransformers(){
return m2tTransformers;
}
public List<IModelToModelConfig> getAllModelToModelConfig() {
return allModelToModelConfig;
}
public List<IModelToTextConfig> getAllModelToTextConfig() {
return allModelToTextConfig;
}
}