Blocks :
|
|
Relates :
|
|
Relates :
|
Currently, DynamicLinker is a static singleton in Nashorn. It should be specific to a Context instead. A DynamicLinker instance can incorporate exported linkers from other language runtimes, discovered through ServiceLoader mechanism on a class loader. Context has such a class loader, its appLoader. Therefore, DynamicLinker should be local to a Context and constructed through a factory that uses the Context's appLoader for discovery of exported linkers. This will allow Nashorn to coƶperate with other language runtimes present in the appLoader's classpath
|