public class ScriptFactory extends 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.
| Constructor and Description | 
|---|
| ScriptFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| ExecutableScript | createScriptFromResource(String language,
                        Expression resourceExpression) | 
| ExecutableScript | createScriptFromResource(String language,
                        String resource) | 
| ExecutableScript | createScriptFromSource(String language,
                      Expression sourceExpression) | 
| ExecutableScript | createScriptFromSource(String language,
                      String source) | 
public ExecutableScript createScriptFromResource(String language, String resource)
public ExecutableScript createScriptFromResource(String language, Expression resourceExpression)
public ExecutableScript createScriptFromSource(String language, String source)
public ExecutableScript createScriptFromSource(String language, Expression sourceExpression)
Copyright © 2018. All rights reserved.