Migrate "ms/controllerblueprints" from ccsdk/apps
[ccsdk/cds.git] / ms / blueprintsprocessor / modules / commons / dmaap-lib / src / main / kotlin / org / onap / ccsdk / apps / blueprintsprocessor / dmaap / BluePrintDmaapLibConfiguration.kt
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - CDS
4  * ================================================================================
5  * Copyright (C) 2019 Huawei Technologies Co., Ltd. All rights reserved.
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 package org.onap.ccsdk.apps.blueprintsprocessor.dmaap
22
23 import org.springframework.boot.context.properties.EnableConfigurationProperties
24 import org.springframework.context.annotation.ComponentScan
25 import org.springframework.context.annotation.Configuration
26
27 /**
28  * Representation of DMAAP lib configuration to load the required property
29  * files into the application context.
30  */
31 @Configuration
32 @ComponentScan
33 @EnableConfigurationProperties
34 open class BluePrintDmaapLibConfiguration
35
36 /**
37  * Util constants required for DMAAP library to use.
38  */
39 class DmaapLibConstants {
40     companion object {
41         const val SERVICE_BLUEPRINT_DMAAP_LIB_PROPERTY = "blueprint" +
42                 "-dmaap-lib-property-service"
43         const val TYPE_HTTP_NO_AUTH = "HTTPNOAUTH"
44         const val TYPE_HTTP_AAF_AUTH = "HTTPAAF"
45     }
46 }