Commit f29650e
committed
DefaultScriptService: do not wrap JSR-223 engines
In theory, it was nice to try to expose all available JSR-223
ScriptEngineFactory implementations as SciJava script languages.
However, without an associated explicit ScriptLanguage plugin,
there are limitations to what the SciJava framework can achieve.
And there was related behavior which could be construed as a bug:
each SciJava scripting component now exposes its ScriptLanguage as
a ScriptEngineFactory via the javax.services mechanism so that it
can be used from other JSR-223 applications not built on SJC. This
caused them to be discovered and added to the ScriptLanguageIndex
twice: once as ScriptLanguage plugins directly, and again as
wrapped JSR-223 ScriptEngineFactory implementations. While we could
make the ScriptService smarter about this situation, it is easier
to simply stop wrapping vanilla JSR-223 ScriptEngineFactory
classes, because we have no use cases relying on it. (The only
engine I know of which has no associated SciJava scripting
component is AppleScript on OS X, and AFAIK, no one writes
AppleScript scripts in anger in ImageJ.)1 parent 2633490 commit f29650e
1 file changed
+0
-14
lines changedLines changed: 0 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | 349 | | |
364 | 350 | | |
365 | 351 | | |
| |||
0 commit comments