Aharoni, Pavel (pa0916) | ca3cb01 | 2018-10-22 15:29:57 +0300 | [diff] [blame] | 1 | /*-
|
| 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 |
|
| 23 | package org.onap.osam.external.aai.config;
|
| 24 |
|
| 25 | import lombok.Getter;
|
| 26 | import lombok.Setter;
|
| 27 | import lombok.extern.slf4j.Slf4j;
|
| 28 | import org.springframework.beans.factory.annotation.Value;
|
| 29 | import org.springframework.context.annotation.Configuration;
|
| 30 | import 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
|
| 40 | public 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 | }
|