Class ScriptFactory


  • public class ScriptFactory
    extends java.lang.Object

    A script factory is responsible for creating a ExecutableScript instance. Users may customize (subclass) this class in order to customize script creation. For instance, some users may choose to pre-process scripts before they are created.

    Author:
    Daniel Meyer
    • Constructor Detail

      • ScriptFactory

        public ScriptFactory()
    • Method Detail

      • createScriptFromResource

        public ExecutableScript createScriptFromResource​(java.lang.String language,
                                                         java.lang.String resource)
      • createScriptFromResource

        public ExecutableScript createScriptFromResource​(java.lang.String language,
                                                         Expression resourceExpression)
      • createScriptFromSource

        public ExecutableScript createScriptFromSource​(java.lang.String language,
                                                       java.lang.String source)
      • createScriptFromSource

        public ExecutableScript createScriptFromSource​(java.lang.String language,
                                                       Expression sourceExpression)