Package org.cometd.javascript
Interface ThreadModel
- All Known Implementing Classes:
JavaScriptThreadModel
public interface ThreadModel
-
Method Summary
Modifier and Type Method Description void
define(Class<? extends org.mozilla.javascript.Scriptable> clazz)
void
destroy()
Object
evaluate(String scriptName, String script)
Object
evaluate(URL url)
Object
get(String name)
void
init()
Object
invoke(boolean sync, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thiz, String functionName, Object... arguments)
Object
invoke(boolean sync, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thiz, org.mozilla.javascript.Function function, Object... arguments)
void
remove(String name)
-
Method Details
-
init
- Throws:
Exception
-
destroy
- Throws:
Exception
-
evaluate
- Throws:
IOException
-
evaluate
-
invoke
-
invoke
-
define
void define(Class<? extends org.mozilla.javascript.Scriptable> clazz) throws InvocationTargetException, IllegalAccessException, InstantiationException -
get
-
remove
-