Skip to content

Commit b6b8baa

Browse files
committed
Added javadoc documentation
1 parent 7a5fc66 commit b6b8baa

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

src/main/java/org/fugerit/java/script/helper/EvalScriptWithDataModel.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
@Slf4j
2424
public class EvalScriptWithDataModel implements EvalScript {
2525

26+
/**
27+
* Default name for data model binding in script engine.
28+
*/
2629
public static final String DEFAULT_DATA_MODEL_BINDING_NAME = "data";
2730

2831
private String scriptExtension;

src/main/java/org/fugerit/java/script/helper/EvalScriptWithJsonDataModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* EvalScript decorator.
1212
*
13-
* The Map<String, Object> dataModel will be transformed into a json styled LinkedHashMap<String, Object>.
13+
* The Map dataModel will be transformed into a json styled LinkedHashMap.
1414
*/
1515
@Slf4j
1616
public class EvalScriptWithJsonDataModel implements EvalScript {

src/main/java/org/fugerit/java/script/helper/ScriptException.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,41 @@
11
package org.fugerit.java.script.helper;
22

3+
/**
4+
* Exception used by {@link EvalScript}
5+
*/
36
public class ScriptException extends Exception {
47

8+
/**
9+
* Default constructor
10+
*/
511
public ScriptException() {
12+
super();
613
}
714

15+
/**
16+
* Constructor using only the cause
17+
*
18+
* @param cause the cause of this exception
19+
*/
820
public ScriptException(Throwable cause) {
921
super(cause);
1022
}
1123

24+
/**
25+
* Constructor using only a message
26+
*
27+
* @param message the message of this exception
28+
*/
1229
public ScriptException(String message) {
1330
super(message);
1431
}
1532

33+
/**
34+
* Constructor using message and cause
35+
*
36+
* @param message the message of this exception
37+
* @param cause the cause of this exception
38+
*/
1639
public ScriptException(String message, Throwable cause) {
1740
super(message, cause);
1841
}

0 commit comments

Comments
 (0)