The IntentFactory can now be referenced in scripts without the need to import the class

This commit is contained in:
Ziggy
2015-08-03 06:05:35 +02:00
parent ccc5c1bc20
commit e3097069bc
+4
View File
@@ -41,6 +41,10 @@ public class Scripts {
private static final ScriptEngine ENGINE = new ScriptEngineManager().getEngineByName("nashorn");
private static final Invocable INVOCABLE = (Invocable) ENGINE;
static {
ENGINE.put("intentFactory", new IntentFactory());
}
// Prevents instantiation.
private Scripts() {}