Package org.springframework.scripting
Interface ScriptSource
- All Known Implementing Classes:
- ResourceScriptSource,- StaticScriptSource
public interface ScriptSource
Interface that defines the source of a script.
 Tracks whether the underlying script has been modified.
- Since:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller
- 
Method SummaryModifier and TypeMethodDescriptionRetrieve the current script source text as String.booleanIndicate whether the underlying script data has been modified since the last timegetScriptAsString()was called.Determine a class name for the underlying script.
- 
Method Details- 
getScriptAsStringRetrieve the current script source text as String.- Returns:
- the script text
- Throws:
- IOException- if script retrieval failed
 
- 
isModifiedboolean isModified()Indicate whether the underlying script data has been modified since the last timegetScriptAsString()was called. Returnstrueif the script has not been read yet.- Returns:
- whether the script data has been modified
 
- 
suggestedClassNameDetermine a class name for the underlying script.- Returns:
- the suggested class name, or nullif none available
 
 
-