Class RefreshableResourceScriptSource
java.lang.Object
org.springframework.integration.scripting.RefreshableResourceScriptSource
- All Implemented Interfaces:
ScriptSource
A
ScriptSource
implementation, which caches a script string and refreshes it from the
target file (if modified) according the provided refreshDelay
.- Since:
- 2.0
- Author:
- Dave Syer, Oleg Zhurakousky, Artem Bilan
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RefreshableResourceScriptSource
-
-
Method Details
-
getScriptAsString
- Specified by:
getScriptAsString
in interfaceScriptSource
- Throws:
IOException
-
suggestedClassName
- Specified by:
suggestedClassName
in interfaceScriptSource
-
isModified
public boolean isModified()- Specified by:
isModified
in interfaceScriptSource
-
toString
-