blob: 08ee7e773ba9d5ace567cdbeb8ab8ff593b6765d [file] [log] [blame]
Aharoni, Pavel (pa0916)ca3cb012018-10-22 15:29:57 +03001/*-
2 * ============LICENSE_START=======================================================
3 * OSAM Core
4 * ================================================================================
5 * Copyright (C) 2018 Netsia
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
19 */
20
21
22
23package org.onap.osam.external.aai.config;
24
25import lombok.Getter;
26import lombok.Setter;
27import lombok.extern.slf4j.Slf4j;
28import org.springframework.beans.factory.annotation.Value;
29import org.springframework.context.annotation.Configuration;
30import org.springframework.context.annotation.PropertySource;
31
32/**
33 * Created by cemturker on 12.04.2018.
34 */
35@Configuration
36@PropertySource("classpath:aai.properties")
37@Slf4j
38@Getter
39@Setter
40public class AaiConfig {
41 private static final String AAI_HOST = "${aai.host}";
42 private static final String AAI_PORT = "${aai.port}";
43
44 private static final String AAI_PROTOCOL = "${aai.protocol}";
45
46 private static final String AAI_USERNAME = "${aai.username}";
47 private static final String AAI_PASSWORD = "${aai.password}";
48 private static final String AAI_BASE_PATH = "${aai.base.path}";
49 private static final String AAI_PNF_PATH = "${aai.pnf.path}";
50
51 @Value(AAI_HOST)
52 private String host;
53 @Value(AAI_PORT)
54 private int port;
55 @Value(AAI_PROTOCOL)
56 private String protocol;
57 @Value(AAI_USERNAME)
58 private String username;
59 @Value(AAI_PASSWORD)
60 private String password;
61 @Value(AAI_BASE_PATH)
62 private String basePath;
63 @Value(AAI_PNF_PATH)
64 private String pnfPath;
65
66}