站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

ScriptSource (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

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 Summary
 String getScriptAsString()
          Retrieve the current script source text as String.
 boolean isModified()
          Indicate whether the underlying script data has been modified since the last time getScriptAsString() was called.
 

Method Detail

getScriptAsString

String getScriptAsString()
                         throws IOException
Retrieve the current script source text as String.

Returns:
the script text
Throws:
IOException - if script retrieval failed

isModified

boolean isModified()
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.

Returns:
whether the script data has been modified

The Spring Framework

Copyright © 2002-2007 The Spring Framework.