Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.event.script
Class FakeCompiledScript

java.lang.Object
  extended by javax.script.CompiledScript
      extended by org.nuxeo.ecm.core.event.script.FakeCompiledScript

public class FakeCompiledScript
extends CompiledScript

Simulates a compiled script for scripts that don't support compilation.

Author:
Bogdan Stefanescu

Constructor Summary
FakeCompiledScript(ScriptEngine engine, Script script)
           
 
Method Summary
 Object eval(ScriptContext arg0)
           
 ScriptEngine getEngine()
           
 
Methods inherited from class javax.script.CompiledScript
eval, eval
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeCompiledScript

public FakeCompiledScript(ScriptEngine engine,
                          Script script)
Method Detail

eval

public Object eval(ScriptContext arg0)
            throws ScriptException
Specified by:
eval in class CompiledScript
Throws:
ScriptException

getEngine

public ScriptEngine getEngine()
Specified by:
getEngine in class CompiledScript

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.