org.apache.tapestry5.internal.webresources

## Interface RhinoExecutor

-     public interface RhinoExecutor

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `discard()` Discards the executor, returning it to the pool for reuse.
    `org.mozilla.javascript.ScriptableObject` | `invokeFunction(String functionName, Object... arguments)` Invokes the named function, which must return a scriptable object (typically, a JavaScript Object).

- - ### Method Detail

    - #### invokeFunction

          org.mozilla.javascript.ScriptableObject invokeFunction(String functionName,
                                                               Object... arguments)

      Invokes the named function, which must return a scriptable object (typically, a JavaScript Object).
      Parameters:
        `functionName` - name of function visible to the executor's scope (e.g., loaded from the scripts associated with the executor).
        `arguments` - Arguments to pass to the object which must be convertable to JavaScript types; Strings work well here.
      Returns:
        result of invoking the function.

    - #### discard

          void discard()

      Discards the executor, returning it to the pool for reuse.

${project.version} - Copyright © 2003-2014 The Apache Software Foundation.