summaryrefslogtreecommitdiffstats
path: root/mod/bpgenerator/onap/src/main/java/org/onap/blueprintgenerator/service/common/ComponentSpecService.java
diff options
context:
space:
mode:
Diffstat (limited to 'mod/bpgenerator/onap/src/main/java/org/onap/blueprintgenerator/service/common/ComponentSpecService.java')
-rw-r--r--mod/bpgenerator/onap/src/main/java/org/onap/blueprintgenerator/service/common/ComponentSpecService.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/mod/bpgenerator/onap/src/main/java/org/onap/blueprintgenerator/service/common/ComponentSpecService.java b/mod/bpgenerator/onap/src/main/java/org/onap/blueprintgenerator/service/common/ComponentSpecService.java
index 4991bda..7145ac8 100644
--- a/mod/bpgenerator/onap/src/main/java/org/onap/blueprintgenerator/service/common/ComponentSpecService.java
+++ b/mod/bpgenerator/onap/src/main/java/org/onap/blueprintgenerator/service/common/ComponentSpecService.java
@@ -23,6 +23,7 @@
package org.onap.blueprintgenerator.service.common;
+import java.io.IOException;
import org.onap.blueprintgenerator.exception.ComponentSpecException;
import org.onap.blueprintgenerator.model.componentspec.OnapComponentSpec;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -51,7 +52,7 @@ public class ComponentSpecService {
/**
* Creates ComponentSpec from given file path and validates if the input is json file or not
*
- * @param componentSpecPath
+ * @param componentSpecPath Path of Component Spec File Location
* @return
*/
public OnapComponentSpec createComponentSpecFromFile(String componentSpecPath) {
@@ -63,7 +64,9 @@ public class ComponentSpecService {
componentSpec = componentMapper.readValue(new File(componentSpecPath), OnapComponentSpec.class);
}
} catch (Exception ex) {
- throw new ComponentSpecException("Unable to create ONAP Component Spec from the input file: "+ componentSpecPath, ex);
+ throw new ComponentSpecException(
+ "Unable to create ONAP Component Spec from the input file: " + componentSpecPath,
+ ex);
}
return componentSpec;
}
@@ -71,7 +74,8 @@ public class ComponentSpecService {
/**
* Creates the component spec from string.
* This method is used by RuntimeAPI
- * @param specString the spec string
+ * @param specString the spec string of Component Spec
+ * @return
*/
public OnapComponentSpec createComponentSpecFromString(String specString) {
OnapComponentSpec componentSpec;