List of usage examples for org.apache.commons.scxml.env.javascript JSEvaluator JSEvaluator
public JSEvaluator()
From source file:de.dfki.iui.mmds.scxml.engine.impl.SCXMLEngineImpl.java
/** * Convenience constructor, object instantiation incurs parsing cost. * /*from w w w. j a v a 2 s . co m*/ * @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 ww w .j a v a 2s .c o m*/ * * @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.//from w w w .j a va 2 s . c o 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 va2 s . c o m*/ */ @Override public void initialize(URL scxmlDocument, String idSuffix) { initialize(load(scxmlDocument), idSuffix, new JSContext(), new JSEvaluator(), new SimpleDispatcher(), new SimpleErrorReporter()); }