diff options
author | Brinda Santh <brindasanth@in.ibm.com> | 2019-08-29 22:40:48 -0400 |
---|---|---|
committer | Brinda Santh <brindasanth@in.ibm.com> | 2019-08-29 22:40:48 -0400 |
commit | 0fbfc6eab2d42c8ee2f8601db43813a4e33ffc4d (patch) | |
tree | 240a92c46f7bc1a46605c6aa895c0ec6c56e936e /ms/controllerblueprints/modules/service/src/main | |
parent | b12d13b0b78b7e87912c07a7c946cbbfcee41d47 (diff) |
Resolve duplicate application property values
Change-Id: I0813ff96388bce77eba9fbc9eff0eccf59a6be6a
Issue-ID: CCSDK-1663
Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
Diffstat (limited to 'ms/controllerblueprints/modules/service/src/main')
-rw-r--r-- | ms/controllerblueprints/modules/service/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/service/BluePrintDesignerCoreConfiguration.kt (renamed from ms/controllerblueprints/modules/service/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/service/ControllerBluePrintCoreConfiguration.kt) | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/ms/controllerblueprints/modules/service/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/service/ControllerBluePrintCoreConfiguration.kt b/ms/controllerblueprints/modules/service/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/service/BluePrintDesignerCoreConfiguration.kt index 790c61ebc..c69a94430 100644 --- a/ms/controllerblueprints/modules/service/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/service/ControllerBluePrintCoreConfiguration.kt +++ b/ms/controllerblueprints/modules/service/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/service/BluePrintDesignerCoreConfiguration.kt @@ -1,5 +1,6 @@ /* * Copyright © 2017-2018 AT&T Intellectual Property. + * Modifications Copyright © 2019 IBM. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,34 +28,34 @@ import org.springframework.core.env.Environment import org.springframework.stereotype.Service @Configuration -open class ControllerBluePrintCoreConfiguration(private val bluePrintProperties: ControllerBlueprintProperties) { +open class BluePrintDesignerCoreConfiguration(private val bluePrintProperties: BluePrintDesignerProperties) { companion object { - const val PREFIX_BLUEPRINT_LOAD_CONFIGURATION = "controllerblueprints" + const val PREFIX_BLUEPRINT_LOAD_CONFIGURATION = "blueprintsprocessor" } @Bean - open fun bluePrintLoadConfiguration(): BluePrintLoadConfiguration { + open fun bluePrintDesignerLoadConfiguration(): BluePrintLoadConfiguration { return bluePrintProperties .propertyBeanType(PREFIX_BLUEPRINT_LOAD_CONFIGURATION, BluePrintLoadConfiguration::class.java) } } @Configuration -open class ControllerBlueprintPropertyConfiguration { +open class BlueprintDesignerPropertyConfiguration { @Autowired lateinit var environment: Environment @Bean - open fun controllerBluePrintPropertyBinder(): Binder { + open fun bluePrintDesignerPropertyBinder(): Binder { val configurationPropertySource = ConfigurationPropertySources.get(environment) return Binder(configurationPropertySource) } } @Service -open class ControllerBlueprintProperties(private var bluePrintPropertyBinder: Binder) { +open class BluePrintDesignerProperties(private var bluePrintDesignerPropertyBinder: Binder) { fun <T> propertyBeanType(prefix: String, type: Class<T>): T { - return bluePrintPropertyBinder.bind(prefix, Bindable.of(type)).get() + return bluePrintDesignerPropertyBinder.bind(prefix, Bindable.of(type)).get() } }
\ No newline at end of file |