> private final ScriptEngine scriptEngine; > > /** > * Constructor > * @param engine > */ > - public ScriptEngineShellTable(String engine) { > - this.engine = engine; > - this.scriptEngine = scriptEngineFactory.getEngineByName(engine); > + public ScriptEngineShellTable(ScriptEngineManager scriptEngineManager, > String engine) { > + this.scriptEngine = scriptEngineManager.getEngineByName(engine); > + if (scriptEngine == null) { > + throw new IllegalStateException("Unable to load script engine " + > engine); > + }
@nacx Something like this? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-karaf/pull/79/files/5e0fcbef105bdb8bed0461519fb7b0d2671beed3#r78297007