2 * Copyright 2018 ZTE Corporation.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.onap.sdc.workflowdesigner.config;
18 import org.onap.sdc.workflowdesigner.SDCServiceProxyInfo;
19 import org.onap.sdc.workflowdesigner.ActivitySpecServiceProxyInfo;
24 public class AppConfig {
25 private static AdapterType adapterType;
27 private static SDCServiceProxyInfo sdcServiceProxy;
29 private static ActivitySpecServiceProxyInfo activitySpecServiceProxy;
31 private AppConfig() {}
34 * @return the adapterType
36 public static AdapterType getAdapterType() {
41 * @param adapterType the adapterType to set
43 public static void setAdapterType(AdapterType adapterType) {
44 AppConfig.adapterType = adapterType;
48 * @param sdcServiceProxy
50 public static void setSdcServiceProxy(SDCServiceProxyInfo sdcServiceProxy) {
51 AppConfig.sdcServiceProxy = sdcServiceProxy;
55 * @return the sdcServiceProxy
57 public static SDCServiceProxyInfo getSdcServiceProxy() {
58 return sdcServiceProxy;
64 public static boolean isSDCAdapter() {
65 return adapterType.equals(AdapterType.SDC);
69 * @param activitySpecServiceProxy
71 public static void setActivitySpecServiceProxy(ActivitySpecServiceProxyInfo activitySpecServiceProxy) {
72 AppConfig.activitySpecServiceProxy = activitySpecServiceProxy;
76 * @return the activitySpecServiceProxy
78 public static ActivitySpecServiceProxyInfo getActivitySpecServiceProxy() {
79 return activitySpecServiceProxy;