diff options
Diffstat (limited to 'module/ri-engine')
5 files changed, 19 insertions, 16 deletions
diff --git a/module/ri-engine/classpath.txt b/module/ri-engine/classpath.txt index ce43f01..f01f5f8 100644 --- a/module/ri-engine/classpath.txt +++ b/module/ri-engine/classpath.txt @@ -6,6 +6,7 @@ com.fasterxml.jackson.core:jackson-annotations:2.12.0:jar com.fasterxml.jackson.core:jackson-core:2.12.0:jar com.fasterxml.jackson.core:jackson-databind:2.12.0:jar com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.12.0:jar +com.github.javaparser:javaparser-core:3.13.10:jar com.github.virtuald:curvesapi:1.06:jar com.google.code.findbugs:annotations:3.0.1:jar com.google.errorprone:error_prone_annotations:2.1.3:jar @@ -20,6 +21,7 @@ commons-codec:commons-codec:1.14:jar commons-io:commons-io:2.8.0:jar commons-net:commons-net:3.3:jar info.picocli:picocli:4.6.1:jar +io.trygvis.rules-sandbox.module:ri-module-api:1.0-SNAPSHOT:jar org.antlr:antlr-runtime:3.5.2:jar org.apache.commons:commons-collections4:4.4:jar org.apache.commons:commons-compress:1.19:jar @@ -31,13 +33,17 @@ org.apache.poi:poi-ooxml-schemas:4.1.2:jar org.apache.xmlbeans:xmlbeans:3.1.0:jar org.checkerframework:checker-compat-qual:2.0.0:jar org.codehaus.mojo:animal-sniffer-annotations:1.14:jar +org.drools:drools-canonical-model:7.48.0.Final:jar org.drools:drools-compiler:7.48.0.Final:jar org.drools:drools-core:7.48.0.Final:jar org.drools:drools-core-dynamic:7.48.0.Final:jar org.drools:drools-core-reflective:7.48.0.Final:jar org.drools:drools-decisiontables:7.48.0.Final:jar org.drools:drools-ecj:7.48.0.Final:jar +org.drools:drools-model-compiler:7.48.0.Final:jar org.drools:drools-mvel:7.48.0.Final:jar +org.drools:drools-mvel-compiler:7.48.0.Final:jar +org.drools:drools-mvel-parser:7.48.0.Final:jar org.drools:drools-templates:7.48.0.Final:jar org.javassist:javassist:3.24.1-GA:jar org.jsoup:jsoup:1.10.3:jar diff --git a/module/ri-engine/pom.xml b/module/ri-engine/pom.xml index 01a72cc..a2307f0 100644 --- a/module/ri-engine/pom.xml +++ b/module/ri-engine/pom.xml @@ -19,6 +19,12 @@ <dependencies> <dependency> + <groupId>${project.groupId}.module</groupId> + <artifactId>ri-module-api</artifactId> + <version>${project.version}</version> + </dependency> + + <dependency> <groupId>io.trygvis.rules-sandbox.module</groupId> <artifactId>ri-base</artifactId> <version>${project.version}</version> diff --git a/module/ri-engine/src/main/java/io/trygvis/rules/engine/Engine.java b/module/ri-engine/src/main/java/io/trygvis/rules/engine/Engine.java index 46a3302..f2247d3 100644 --- a/module/ri-engine/src/main/java/io/trygvis/rules/engine/Engine.java +++ b/module/ri-engine/src/main/java/io/trygvis/rules/engine/Engine.java @@ -23,8 +23,6 @@ import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; -import static io.trygvis.rules.engine.TemplateEngine.TemplateLoader; - public class Engine implements Closeable { @SuppressWarnings("FieldCanBeLocal") private final Logger logger = LoggerFactory.getLogger(getClass()); diff --git a/module/ri-engine/src/main/java/io/trygvis/rules/engine/TemplateEngine.java b/module/ri-engine/src/main/java/io/trygvis/rules/engine/TemplateEngine.java deleted file mode 100644 index e3199d9..0000000 --- a/module/ri-engine/src/main/java/io/trygvis/rules/engine/TemplateEngine.java +++ /dev/null @@ -1,14 +0,0 @@ -package io.trygvis.rules.engine; - -import java.io.IOException; -import java.util.Map; - -public interface TemplateEngine { - void clean(); - - void template(String name, String output, Map<String, Object> params) throws IOException; - - interface TemplateLoader { - String load(String name) throws IOException; - } -} diff --git a/module/ri-engine/src/main/java/io/trygvis/rules/engine/TemplateLoader.java b/module/ri-engine/src/main/java/io/trygvis/rules/engine/TemplateLoader.java new file mode 100644 index 0000000..9441264 --- /dev/null +++ b/module/ri-engine/src/main/java/io/trygvis/rules/engine/TemplateLoader.java @@ -0,0 +1,7 @@ +package io.trygvis.rules.engine; + +import java.io.IOException; + +interface TemplateLoader { + String load(String name) throws IOException; +} |