JSObjectLinker questions
Peter Zhelezniakov
peter.zhelezniakov at oracle.com
Fri May 3 08:50:33 PDT 2013
On 04/16/2013 05:20 PM, Attila Szegedi wrote:
> I'd suggest you just assemble your own DynamicLinker using your own factory; probably just put "new NashornLinker()" into the list of prioritized linkers and nothing else (you probably don't need the other linkers in Nashorn's internal prioritized linker list - they're only needed when linking call sites in a JavaScript program).
>
> Then you can have your own bootstrap() and createDynamicInvoker() calls that delegate to your own DynamicLinker.
I cannot do "new NashornLinker()" as NashornLinker is package-private.
Is there some other way to obtain an instance?
(I recall from your J1 presentation that NashornLinker was designed to
be publicly reusable, as opposed to NashornPrimitiveLinker, or have I
got it wrong?)
Thanks!
--
Peter | x33066 | St Petersburg, Russia | timezone: GMT+04
More information about the nashorn-dev
mailing list