org.nuxeo.runtime.scripting
Interface ScriptingService
- All Known Implementing Classes:
- ScriptingComponent
public interface ScriptingService
- Author:
- Bogdan Stefanescu
setScriptDir
void setScriptDir(java.io.File scriptDir)
getScriptDir
java.io.File getScriptDir()
getScriptFile
java.io.File getScriptFile(java.lang.String path)
registerScript
void registerScript(ScriptDescriptor sd)
unregisterScript
void unregisterScript(ScriptDescriptor sd)
unregisterScript
void unregisterScript(java.lang.String name)
isScriptRegistered
boolean isScriptRegistered(java.lang.String name)
getScript
javax.script.CompiledScript getScript(java.lang.String name)
throws javax.script.ScriptException,
java.io.IOException
- Throws:
javax.script.ScriptException
java.io.IOException
compile
javax.script.CompiledScript compile(java.lang.String path)
throws javax.script.ScriptException
- Throws:
javax.script.ScriptException
eval
java.lang.Object eval(java.lang.String path)
throws javax.script.ScriptException
- Throws:
javax.script.ScriptException
eval
java.lang.Object eval(java.lang.String path,
javax.script.ScriptContext ctx)
throws javax.script.ScriptException
- Throws:
javax.script.ScriptException
getEngineByFileName
javax.script.ScriptEngine getEngineByFileName(java.lang.String path)
getScriptEngineManager
javax.script.ScriptEngineManager getScriptEngineManager()
Copyright © 2010 Nuxeo SAS. All Rights Reserved.