X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ms%2Fblueprintsprocessor%2Fmodules%2Fcommons%2Frest-lib%2Fsrc%2Fmain%2Fkotlin%2Forg%2Fonap%2Fccsdk%2Fcds%2Fblueprintsprocessor%2Frest%2Fservice%2FBluePrintRestLibPropertyService.kt;h=ac6cac2b72671b260c79c1a2dd92e7dde07fbedb;hb=04caefad432066ee233eb33899601a42a52b84c1;hp=4f91e547b857951ac027cb203bb5f886930d7c85;hpb=adc8f4c193a138f9cb06c145e16d56103acd5ecc;p=ccsdk%2Fcds.git diff --git a/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BluePrintRestLibPropertyService.kt b/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BluePrintRestLibPropertyService.kt index 4f91e547b..ac6cac2b7 100644 --- a/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BluePrintRestLibPropertyService.kt +++ b/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BluePrintRestLibPropertyService.kt @@ -63,6 +63,14 @@ open class BluePrintRestLibPropertyService(private var bluePrintPropertiesServic return postInterceptor?.getInstance(selector, service) ?: service } + open fun interceptExternalBlueprintWebClientService( + externalService: BlueprintWebClientService, + selector: String + ): BlueprintWebClientService { + val service = preInterceptor?.getInstance(selector) ?: externalService + return postInterceptor?.getInstance(selector, service) ?: service + } + fun restClientProperties(prefix: String): RestClientProperties { val type = bluePrintPropertiesService.propertyBeanType( "$prefix.type", String::class.java