Example usage for org.apache.commons.scxml.env.javascript JSContext JSContext

List of usage examples for org.apache.commons.scxml.env.javascript JSContext JSContext

Introduction

In this page you can find the example usage for org.apache.commons.scxml.env.javascript JSContext JSContext.

Prototype

public JSContext() 

Source Link

Document

Default constructor - just invokes the SimpleContext default constructor.

Usage

From source file:de.dfki.iui.mmds.scxml.engine.impl.SCXMLEngineImpl.java

/**
 * Convenience constructor, object instantiation incurs parsing cost.
 * /*from  w  ww .j a v a  2  s. com*/
 * @param scxmlDocument
 *            The URL pointing to the SCXML document that describes the
 *            "lifecycle" of the instances of this class.
 */
public SCXMLEngineImpl(final URL scxmlDocument) {
    // default is JEXL
    this(scxmlDocument, new JSContext(), new JSEvaluator());
}

From source file:de.dfki.iui.mmds.scxml.engine.impl.SCXMLEngineImpl.java

/**
 * Convenience constructor.//from   w  w w.  ja  v a  2 s  .  c  om
 * 
 * @param stateMachine
 *            The parsed SCXML instance that describes the
 *            "lifecycle" of the instances of this class.
 * 
 * @since 0.7
 */
public SCXMLEngineImpl(final SCXML stateMachine) {
    this(stateMachine, new JSContext(), new JSEvaluator());
}

From source file:de.dfki.iui.mmds.scxml.engine.impl.SCXMLEngineImpl.java

/**
 * Instantiate and initialize the underlying executor instance with default
 * evaluator and context.// www  .j a  va2 s .co  m
 */
@Override
public void initialize(URL scxmlDocument) {
    initialize(load(scxmlDocument), new JSContext(), new JSEvaluator(), new SimpleDispatcher(),
            new SimpleErrorReporter());
}

From source file:de.dfki.iui.mmds.scxml.engine.impl.SCXMLEngineImpl.java

/**
 * /* w w  w.  j  a va 2 s  .c o  m*/
 */
@Override
public void initialize(URL scxmlDocument, String idSuffix) {
    initialize(load(scxmlDocument), idSuffix, new JSContext(), new JSEvaluator(), new SimpleDispatcher(),
            new SimpleErrorReporter());
}