Class RefreshableResourceScriptSource
java.lang.Object
org.springframework.integration.scripting.RefreshableResourceScriptSource
- All Implemented Interfaces:
org.springframework.scripting.ScriptSource
public class RefreshableResourceScriptSource
extends Object
implements org.springframework.scripting.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
-
Constructor Summary
ConstructorsConstructorDescriptionRefreshableResourceScriptSource(org.springframework.core.io.Resource resource, long refreshDelay) -
Method Summary
-
Constructor Details
-
RefreshableResourceScriptSource
public RefreshableResourceScriptSource(org.springframework.core.io.Resource resource, long refreshDelay)
-
-
Method Details
-
getScriptAsString
- Specified by:
getScriptAsStringin interfaceorg.springframework.scripting.ScriptSource- Throws:
IOException
-
suggestedClassName
- Specified by:
suggestedClassNamein interfaceorg.springframework.scripting.ScriptSource
-
isModified
public boolean isModified()- Specified by:
isModifiedin interfaceorg.springframework.scripting.ScriptSource
-
toString
-