package org.onap.ccsdk.apps.controllerblueprints.core.service\r
\r
\r
+import com.att.eelf.configuration.EELFLogger\r
+import com.att.eelf.configuration.EELFManager\r
import com.fasterxml.jackson.databind.JsonNode\r
import com.fasterxml.jackson.databind.node.NullNode\r
import org.onap.ccsdk.apps.controllerblueprints.core.BluePrintConstants\r
import org.onap.ccsdk.apps.controllerblueprints.core.format\r
import org.onap.ccsdk.apps.controllerblueprints.core.utils.JacksonUtils\r
import org.onap.ccsdk.apps.controllerblueprints.core.utils.ResourceResolverUtils\r
-import com.att.eelf.configuration.EELFLogger\r
-import com.att.eelf.configuration.EELFManager\r
\r
/**\r
*\r
*\r
* @author Brinda Santh\r
*/\r
-class PropertyAssignmentService(var context: MutableMap<String, Any>,\r
- var bluePrintRuntimeService: BluePrintRuntimeService) {\r
+class PropertyAssignmentService(var bluePrintRuntimeService: BluePrintRuntimeService<MutableMap<String, JsonNode>>) {\r
private val log: EELFLogger = EELFManager.getInstance().getLogger(this::class.toString())\r
\r
- private var bluePrintContext: BluePrintContext = bluePrintRuntimeService.bluePrintContext\r
+ private var bluePrintContext: BluePrintContext = bluePrintRuntimeService.bluePrintContext()\r
\r
/*\r
\r
}\r
\r
fun artifactContent(artifactDefinition: ArtifactDefinition): String {\r
- val bluePrintBasePath: String = context[BluePrintConstants.PROPERTY_BLUEPRINT_BASE_PATH] as? String\r
+ val bluePrintBasePath: String = bluePrintRuntimeService.get(BluePrintConstants.PROPERTY_BLUEPRINT_BASE_PATH) as? String\r
?: throw BluePrintException(format("failed to get property (%s) from context", BluePrintConstants.PROPERTY_BLUEPRINT_BASE_PATH))\r
\r
if (artifactDefinition.repository != null) {\r