Static implementation of the
org.springframework.scripting.ScriptSource interface,
encapsulating a given String that contains the script source text.
Supports programmatic updates of the script String.
author: Rob Harrop author: Juergen Hoeller since: 2.0
Create a new StaticScriptSource for the given script.
Parameters: script - the script String throws: IllegalArgumentException - if the supplied script is null
Method Detail
getScriptAsString
public synchronized String getScriptAsString()(Code)
public synchronized void setScript(String script)(Code)
Set a fresh script String, overriding the previous script.
Parameters: script - the script String throws: IllegalArgumentException - if the supplied script is null