public interface ScriptFactory
Script
s.Modifier and Type | Method and Description |
---|---|
Script |
createInline(String... lines)
Build a new
Script instance from the given lines representing the script content. |
Script |
createResource(String resource)
Build a new
Script instance from a resource name. |
Script createResource(String resource) throws ScriptException
Script
instance from a resource name.
The resource
name can either:
resource
- Script resource nameScriptException
- if resource is not available or if any pre-validation failedScript createInline(String... lines) throws ScriptException
Script
instance from the given lines
representing the script content.lines
- script contentScriptException
- if any pre-validation failedCopyright 2011-2017 ForgeRock AS.