Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.red5.server.script.rhino
Class RhinoScriptUtils

    java.lang.Object
      org.red5.server.script.rhino.RhinoScriptUtils

    public class RhinoScriptUtils

extends Object

Utility methods for handling Rhino / Javascript objects.

Since:
  0.6
Author:
  Paul Gregoire

Constructor Summary
`RhinoScriptUtils()`

Method Summary
`static Object` | `createRhinoObject(String scriptSource, Class[] interfaces, Class extendedClass)` Create a new Rhino-scripted object from the given script source.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RhinoScriptUtils

    public RhinoScriptUtils()

Method Detail

### createRhinoObject

    public static Object createRhinoObject(String scriptSource,
                                           Class[] interfaces,
                                           Class extendedClass)
                                    throws ScriptCompilationException,
                                           IOException,
                                           Exception

  Create a new Rhino-scripted object from the given script source.

  Parameters:
    `scriptSource` - the script source text
    `interfaces` - the interfaces that the scripted Java object is supposed to implement
    `extendedClass` -
  Returns:
    the scripted Java object
  Throws:
    `ScriptCompilationException` - in case of Rhino parsing failure
    `IOException`
    `Exception`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2010 The Red5 Project