diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-02-03 16:08:50 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-02-03 16:08:50 +0100 |
commit | 91abd0b04320a9c9d932df195aca38c1cacfcc5a (patch) | |
tree | da89b773bfda2f4dea75e8536a1ac06915f23d5f /module/ri-engine/src/main/java/io | |
parent | 36f184d736a636c8e0418e5620e661292a8a9b93 (diff) | |
download | rules-sandbox-91abd0b04320a9c9d932df195aca38c1cacfcc5a.tar.gz rules-sandbox-91abd0b04320a9c9d932df195aca38c1cacfcc5a.tar.bz2 rules-sandbox-91abd0b04320a9c9d932df195aca38c1cacfcc5a.tar.xz rules-sandbox-91abd0b04320a9c9d932df195aca38c1cacfcc5a.zip |
Moving TemplateEngine to shared API.
Diffstat (limited to 'module/ri-engine/src/main/java/io')
3 files changed, 7 insertions, 16 deletions
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; +} |