Milchreis commented on code in PR #154:
URL: https://github.com/apache/commons-scxml/pull/154#discussion_r1349570424
##########
src/main/java/org/apache/commons/scxml2/env/jexl/JexlEvaluator.java:
##########
@@ -74,11 +74,21 @@ public Evaluator getEvaluator(final SCXML document) {
/** The internal JexlEngine instance to use. */
private transient volatile JexlEngine jexlEngine;
+ /** Optional: saves user defined packages, which JEXL should allow for
evaluation */
+ private String[] customAllowedClasses;
+
/** Constructor. */
public JexlEvaluator() {
jexlEngine = getJexlEngine();
}
+ /** Constructor with further allowed classes or packages. Use an asterix
for all classes in a package */
+ public JexlEvaluator(String... customAllowedClasses) {
Review Comment:
Did some work and added a builder-class which now provides the different
options. Moreover it is used in 2 test cases.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]