diff options
Diffstat (limited to 'module/ri-engine/src/main/java')
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; +} |