This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 254294 - JavaScript Native Interface
Summary: JavaScript Native Interface
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Html4j (show other bugs)
Version: 8.1
Hardware: PC Linux
: P4 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-12 06:49 UTC by Jaroslav Tulach
Modified: 2016-02-26 20:47 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Few lines of code that can wrap a JS object by a Java interface (1.98 KB, text/plain)
2015-08-12 07:16 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2015-08-12 06:49:09 UTC
JNA (https://github.com/twall/jna) is very effective way for Java to encapsulate access to C or other native code. Similar approach could be used for encapsulating Java access to JavaScript via HTML/Java APIs.
Comment 1 Jaroslav Tulach 2015-08-12 07:16:12 UTC
Created attachment 155281 [details]
Few lines of code that can wrap a JS object by a Java interface