java.lang.Object | |
↳ | org.springframework.scripting.support.StaticScriptSource |
Static implementation of the
ScriptSource
interface,
encapsulating a given String that contains the script source text.
Supports programmatic updates of the script String.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new StaticScriptSource for the given script.
| |||||||||||
Create a new StaticScriptSource for the given script.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieve the current script source text as String.
| |||||||||||
Indicate whether the underlying script data has been modified since
the last time
getScriptAsString() was called. | |||||||||||
Set a fresh script String, overriding the previous script.
| |||||||||||
Determine a class name for the underlying script.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.scripting.ScriptSource
|
Create a new StaticScriptSource for the given script.
script | the script String |
---|
Create a new StaticScriptSource for the given script.
script | the script String |
---|---|
className | the suggested class name for the script
(may be null )
|
Retrieve the current script source text as String.
Indicate whether the underlying script data has been modified since
the last time getScriptAsString()
was called.
Returns true
if the script has not been read yet.
Set a fresh script String, overriding the previous script.
script | the script String |
---|
Determine a class name for the underlying script.
null
if none available