From e1db421213dbac2acf5bec2e5a8f43caa9d04d51 Mon Sep 17 00:00:00 2001 From: "igor%mir2.org" Date: Sat, 14 Aug 2004 15:17:40 +0000 Subject: [PATCH] Documenting ClassFactory usage --- js/rhino/apiClasses.properties | 2 +- js/rhino/docs/api.html | 27 +++++++++++++-------------- js/rhino/docs/changes.html | 12 +++++++++--- 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/js/rhino/apiClasses.properties b/js/rhino/apiClasses.properties index 84692041a3e0..232f6d14e1c5 100644 --- a/js/rhino/apiClasses.properties +++ b/js/rhino/apiClasses.properties @@ -3,10 +3,10 @@ apiClasses=\ src/org/mozilla/javascript/ClassCache.java,\ src/org/mozilla/javascript/ClassDefinitionException.java,\ src/org/mozilla/javascript/ClassShutter.java,\ + src/org/mozilla/javascript/CompilerEnvirons.java,\ src/org/mozilla/javascript/Context.java,\ src/org/mozilla/javascript/ContextAction.java,\ src/org/mozilla/javascript/ContextFactory.java,\ - src/org/mozilla/javascript/ContextListener.java,\ src/org/mozilla/javascript/EcmaError.java,\ src/org/mozilla/javascript/ErrorReporter.java,\ src/org/mozilla/javascript/EvaluatorException.java,\ diff --git a/js/rhino/docs/api.html b/js/rhino/docs/api.html index 43ff25389179..0aa33c37b96c 100644 --- a/js/rhino/docs/api.html +++ b/js/rhino/docs/api.html @@ -24,9 +24,8 @@ JavaScript evaluation engine with a Java thread, set attributes of the engine, and compile and evaluate scripts.
  • -ContextListener -- Allows embeddings to be notified of the creation, entering, exiting, -and releasing of Contexts.
  • +ContextFactory +- Allows embeddings to customize creation of Context instances and monitor entering and releasing of Contexts.
  • Script - The result of @@ -74,7 +73,7 @@ for use by JavaScript.
  • The Host Object API These APIs provide support for adding objects specific to a particular embedding of JavaScript in a host environment. Note that if you just want -to script existing Java classes, you should just use LiveConnect. +to script existing Java classes, you should just use LiveConnect. See also LiveConnect 3.0 specs. It is also helpful to understand some of the implementation of the runtime.

    @@ -109,23 +108,23 @@ Exceptions

    These exceptions are thrown by JavaScript. diff --git a/js/rhino/docs/changes.html b/js/rhino/docs/changes.html index 1732c81ce349..ed8835843018 100644 --- a/js/rhino/docs/changes.html +++ b/js/rhino/docs/changes.html @@ -48,7 +48,7 @@ The class gives the uniform way to access information about the script origin of See Bugzilla 244492 for details.

    -

    Removal of code complexity limits in the interpretr

    +

    Removal of code complexity limits in the interpretr

    The interpreter mode in Rhino does not limit any longer the script size or code complexity. It should be possible to execute any script as long as JVM resources allow so.

    @@ -57,7 +57,7 @@ See Bugzilla 244014

    -

    JavaImporter constructor

    +

    JavaImporter constructor

    JavaImporter is a new global constructor that allows to omit explicit package names when scripting Java:

    @@ -85,8 +85,14 @@ Previously such functionality was available only to embeddings that used
    Bugzilla 245882 for details.

    +

    Context customization API

    +org.mozilla.javascript.ContextFactory provides new API for customization of org.mozilla.javascript.Context and ensures that application-specific Context subclasses will always be used with when Rhino runtime needs to create Context instances. +

    +

    +See Bugzilla 245882 for details. +

    -

    Support for Date.now()

    +

    Support for Date.now()

    Date.now() function which is a SpiderMonkey extension to ECMAScript standard is available now in Rhino. The function returns number of milliseconds passed since 1970-01-01 00:00:00 UTC.