org.nuxeo.ecm.core.event.script
Class Script
java.lang.Object
org.nuxeo.ecm.core.event.script.Script
- Direct Known Subclasses:
- FileScript, JARFileScript, JARUrlScript, URLScript
public abstract class Script
- extends Object
- Author:
- Bogdan Stefanescu
trackChanges
public static boolean trackChanges
scripting
public static ScriptEngineManager scripting
script
public CompiledScript script
lastModified
public long lastModified
Script
public Script()
getScripting
public static ScriptEngineManager getScripting()
newScript
public static Script newScript(String location)
throws Exception
- Throws:
Exception
newScript
public static Script newScript(URL location)
throws Exception
- Throws:
Exception
newScript
public static Script newScript(File location)
getReader
public abstract Reader getReader()
throws IOException
- Throws:
IOException
getReaderIfModified
public abstract Reader getReaderIfModified()
throws IOException
- Throws:
IOException
getExtension
public abstract String getExtension()
getLocation
public abstract String getLocation()
run
public Object run(Bindings args)
throws Exception
- Throws:
Exception
getCompiledScript
public CompiledScript getCompiledScript()
throws ScriptException
- Throws:
ScriptException
compile
public CompiledScript compile(Reader reader)
throws ScriptException
- Throws:
ScriptException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2011 Nuxeo SAS. All Rights Reserved.