public interface ScriptingService
Modifier and Type | Method and Description |
---|---|
CompiledScript |
compile(String path) |
Object |
eval(String path) |
Object |
eval(String path,
ScriptContext ctx) |
ScriptEngine |
getEngineByFileName(String path) |
CompiledScript |
getScript(String name) |
File |
getScriptDir() |
ScriptEngineManager |
getScriptEngineManager() |
File |
getScriptFile(String path) |
boolean |
isScriptRegistered(String name) |
void |
registerScript(ScriptDescriptor sd) |
void |
setScriptDir(File scriptDir) |
void |
unregisterScript(ScriptDescriptor sd) |
void |
unregisterScript(String name) |
void setScriptDir(File scriptDir)
File getScriptDir()
void registerScript(ScriptDescriptor sd)
void unregisterScript(ScriptDescriptor sd)
void unregisterScript(String name)
boolean isScriptRegistered(String name)
CompiledScript getScript(String name) throws ScriptException, IOException
ScriptException
IOException
CompiledScript compile(String path) throws ScriptException
ScriptException
Object eval(String path) throws ScriptException
ScriptException
Object eval(String path, ScriptContext ctx) throws ScriptException
ScriptException
ScriptEngine getEngineByFileName(String path)
ScriptEngineManager getScriptEngineManager()
Copyright © 2011 Nuxeo SA. All Rights Reserved.