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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RhinoScriptUtils
public RhinoScriptUtils()
createRhinoObject
public static Object createRhinoObject(String scriptSource,
Class[] interfaces,
Class extendedClass)
throws org.springframework.scripting.ScriptCompilationException,
IOException,
Exception
- Create a new Rhino-scripted object from the given script source.
- Parameters:
scriptSource
- the script source textinterfaces
- the interfaces that the scripted Java object is supposed to
implementextendedClass
-
- Returns:
- the scripted Java object
- Throws:
org.springframework.scripting.ScriptCompilationException
- in case of Rhino parsing failure
IOException
Exception
Copyright © 2006-2012 The Red5 Project