Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » components » flow » javascript » [javadoc | source]
org.apache.cocoon.components.flow.javascript
public class: JavaScriptInterpreter [javadoc | source]
java.lang.Object
   org.apache.avalon.framework.logger.AbstractLogEnabled
      org.apache.cocoon.components.flow.AbstractInterpreter
         org.apache.cocoon.components.flow.javascript.JavaScriptInterpreter

All Implemented Interfaces:
    org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.thread.SingleThreaded, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.context.Contextualizable, Interpreter

Interface with the JavaScript interpreter.
Field Summary
static  int OPTIMIZATION_LEVEL     
 JSGlobal scope     
Fields inherited from org.apache.cocoon.components.flow.AbstractInterpreter:
avalonContext,  needResolve,  context,  manager,  continuationsMgr,  reloadScripts,  checkTime
Method from org.apache.cocoon.components.flow.javascript.JavaScriptInterpreter Summary:
callFunction,   enterContext,   exitContext,   handleContinuation,   initialize,   readScript
Methods from org.apache.cocoon.components.flow.AbstractInterpreter:
configure,   contextualize,   dispose,   forwardTo,   getInterpreterID,   process,   register,   service,   setInterpreterID
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.components.flow.javascript.JavaScriptInterpreter Detail:
 public  void callFunction(String funName,
    List params,
    Environment environment,
    InvokeContext ctx) throws Exception 
 protected Scriptable enterContext(Environment environment,
    InvokeContext ctx) throws Exception 
 protected  void exitContext(Scriptable thrScope) 
    Remove the Cocoon object from the JavaScript thread scope so it can be garbage collected, together with all the objects it contains.
 public  void handleContinuation(String id,
    Environment environment,
    InvokeContext ctx) throws Exception 
 public  void initialize() throws Exception 
 public Source readScript(Environment environment,
    String sourceName) throws Exception