Nuxeo Enterprise Platform 5.4

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 javax.script.CompiledScript

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

Author:
Bogdan Stefanescu

Constructor Summary
FakeCompiledScript(javax.script.ScriptEngine engine, Script script)
           
 
Method Summary
 java.lang.Object eval(javax.script.ScriptContext arg0)
           
 javax.script.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(javax.script.ScriptEngine engine,
                          Script script)
Method Detail

eval

public java.lang.Object eval(javax.script.ScriptContext arg0)
                      throws javax.script.ScriptException
Specified by:
eval in class javax.script.CompiledScript
Throws:
javax.script.ScriptException

getEngine

public javax.script.ScriptEngine getEngine()
Specified by:
getEngine in class javax.script.CompiledScript

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.