Class ScriptEngine

All Implemented Interfaces:
GenericEngine

public final class ScriptEngine extends GenericAsyncEngine
Generic Script Service Engine. This service engine uses the javax.script package (JSR-223) to invoke scripts or script functions.

The script service engine will put the following artifacts in the script engine's bindings:

  • parameters - the service attributes Map
  • dctx - a DispatchContext instance
  • dispatcher - a LocalDispatcher instance
  • delegator - a Delegator instance

If the service definition includes an invoke attribute, then the matching script function/method will be called with a single argument - the bindings Map.