| /********************************************************************************* |
| * 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.cloud.manager.administration; |
| |
| import java.util.ArrayList; |
| import java.util.List; |
| |
| import org.springframework.context.annotation.Bean; |
| import org.springframework.context.annotation.Configuration; |
| import org.springframework.web.context.annotation.ApplicationScope; |
| |
| @Configuration |
| public class ApplicationConfig { |
| |
| @Bean |
| @ApplicationScope |
| public List<CloudServiceDefinition> cloudServiceDefinitions() { |
| ArrayList<CloudServiceDefinition> definitions = new ArrayList<>(); |
| definitions.add(new CloudServiceDefinition("Migration", "http://localhost:8080/app4mc/converter/", "Model Migration Service")); |
| definitions.add(new CloudServiceDefinition("Validation", "http://localhost:8181/app4mc/validation/", "Model Validation Service")); |
| |
| return definitions; |
| } |
| } |