Package com.sun.java.browser.plugin2.liveconnect.v1

Provides an inter-language bridge between the JavaScript engine in the web browser and arbitrary languages hosted on the Java™ platform.

See:
          Description

Interface Summary
Bridge The base of the inter-language bridge between JavaScript in the web browser and arbitrary languages hosted on the Java virtual machine implementation.
ConversionDelegate Converts values between types, and provides a measure of the cost of performing such conversion.
InvocationDelegate Maps JavaScript field accesses, method calls and object creations to a language hosted on the Java platform.
 

Class Summary
BridgeFactory Provides Bridge instances to runtimes for non-Java languages hosted on the Java platform.
JavaNameSpace Represents a Java name space exposed to the web browser's JavaScript engine.
Result Represents a result returned to the JavaScript engine from method invocations and other operations.
 

Package com.sun.java.browser.plugin2.liveconnect.v1 Description

Provides an inter-language bridge between the JavaScript engine in the web browser and arbitrary languages hosted on the Java™ platform.

Overview

The Java platform and virtual machine implementation hosts both Java and non-Java language implementations. Developers can write many different kinds of programs in these languages, including desktop applications and applets in the web browser.

When a Java program is hosted as an applet in the browser, JavaScript on the web page may interact with it, and call methods, access fields, and create new Java objects. The capability of a web page to interact with a Java applet originated in the Netscape browser and is generically called "LiveConnect".

This package provides interfaces to support calling into arbitrary languages hosted on the Java platform from the JavaScript engine in the web browser. Using these interfaces, the language implementor can customize:

The applet's content can then be accessed from JavaScript on the web page. For example, HTML links or buttons on the web page can call into the applet or objects referred to by the applet to affect its state. Some of the objects returned to the web browser might correspond to a third-party language hosted on the Java platform, in which case the language implementor defines the mapping between JavaScript syntax on the web page and their language.

Naming convention note: it is anticipated that these APIs may need to change in incompatible ways in the future, as concepts like conversion costs and algorithms for overloaded method resolution and invocation are refined. For this reason the package name contains v1 to indicate version 1 of the inter-language LiveConnect bridge.