|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.server.script.rhino.RhinoScriptFactory
public class RhinoScriptFactory
ScriptFactory implementation for a
Rhino / Javascript script.
Typically used in combination with a
ScriptFactoryPostProcessor;
see the latter's
Javadoc
for a configuration example.
ScriptFactoryPostProcessor,
RhinoScriptUtils| Constructor Summary | |
|---|---|
RhinoScriptFactory(String scriptSourceLocator)
|
|
RhinoScriptFactory(String scriptSourceLocator,
Class scriptInterface)
|
|
RhinoScriptFactory(String scriptSourceLocator,
Class[] scriptInterfaces)
Create a new RhinoScriptFactory for the given script source. |
|
RhinoScriptFactory(String scriptSourceLocator,
Class[] scriptInterfaces,
Class extendedClass)
|
|
| Method Summary | |
|---|---|
Object |
getScriptedObject(ScriptSource actualScriptSource,
Class[] actualInterfaces)
Load and parse the Rhino script via RhinoScriptUtils. |
Class |
getScriptedObjectType(ScriptSource src)
|
Class[] |
getScriptInterfaces()
|
String |
getScriptSourceLocator()
|
boolean |
requiresConfigInterface()
Rhino scripts do not require a config interface. |
boolean |
requiresScriptedObjectRefresh(ScriptSource src)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RhinoScriptFactory(String scriptSourceLocator)
public RhinoScriptFactory(String scriptSourceLocator,
Class scriptInterface)
public RhinoScriptFactory(String scriptSourceLocator,
Class[] scriptInterfaces)
scriptSourceLocator - a locator that points to the source of the script. Interpreted
by the post-processor that actually creates the script.scriptInterfaces - the Java interfaces that the scripted object is supposed to
implement
IllegalArgumentException - if either of the supplied arguments is null;
or the supplied scriptSourceLocator argument
is composed wholly of whitespace; or if the supplied
scriptInterfaces argument array has no
elements
public RhinoScriptFactory(String scriptSourceLocator,
Class[] scriptInterfaces,
Class extendedClass)
| Method Detail |
|---|
public String getScriptSourceLocator()
getScriptSourceLocator in interface ScriptFactorypublic Class[] getScriptInterfaces()
getScriptInterfaces in interface ScriptFactorypublic boolean requiresConfigInterface()
requiresConfigInterface in interface ScriptFactoryfalse always
public Object getScriptedObject(ScriptSource actualScriptSource,
Class[] actualInterfaces)
throws IOException,
ScriptCompilationException
getScriptedObject in interface ScriptFactoryIOException
ScriptCompilationException
public Class getScriptedObjectType(ScriptSource src)
throws IOException,
ScriptCompilationException
getScriptedObjectType in interface ScriptFactoryIOException
ScriptCompilationExceptionpublic boolean requiresScriptedObjectRefresh(ScriptSource src)
requiresScriptedObjectRefresh in interface ScriptFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||