+ /**
+ * Creates the component spec from string.
+ * This method is used by RuntimeAPI
+ * @param specString the spec string
+ */
+ public OnapComponentSpec createComponentSpecFromString(String specString) {
+ OnapComponentSpec componentSpec;
+ try {
+ componentSpec = componentMapper.readValue(specString, OnapComponentSpec.class);
+ } catch (Exception ex) {
+ throw new ComponentSpecException(
+ "Unable to create ONAP Component Spec from the input string: " + specString,
+ ex);
+ }
+ return componentSpec;
+ }
+