public interface GlobalFunction
ScriptContextDAO, should be passed to implementers of
GlobalFunction via a constructor.
This is not the recommended way of adding functions to the scripting
enviroment. Instead you should add an object with the function you wish to
call, and use the Object Orientiated way to call the method. (e.g.
object.function(parameter)).
Implementing GlobalFunction is the only way to a new global function to the
scripting environment and exists for backwards compatibility.| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
call(java.lang.Object[] parameters)
This method will be called when the global function is called from a
script.
|
java.lang.Object call(java.lang.Object[] parameters)
throws ScriptEvaluationException
parameters - The parameters passed into the function.ScriptEvaluationException - Thrown if anything goes wrong and the function needs to
abort.