Override load pseudo URL schemes
sundararajan.athijegannathan at oracle.com
Mon Dec 7 12:08:46 UTC 2015
"load" is just another normal global function. You can replace it with
your own version of "load" that extends for other schemes (or forwards
calls to original load as needed!)
On 12/7/2015 3:35 PM, Axel Dörfler wrote:
> Hi there,
> I've got a scriptable application that would benefit from having
> globally available scripts that user scripts can import.
> Would it be possible to add other pseudo URL schemes (in addition to
> the already available nashorn: or fx:), and let me handle those
> requests? Is there a stable API to achieve this by any chance?
> Thanks in advance!
More information about the nashorn-dev