public class RefreshableResourceScriptSource extends Object implements ScriptSource
ScriptSource
implementation, which caches a script string and refreshes it from the
target file (if modified) according the provided refreshDelay
.Constructor and Description |
---|
RefreshableResourceScriptSource(Resource resource,
long refreshDelay) |
Modifier and Type | Method and Description |
---|---|
String |
getScriptAsString() |
boolean |
isModified() |
String |
suggestedClassName() |
String |
toString() |
public RefreshableResourceScriptSource(Resource resource, long refreshDelay)
public String getScriptAsString() throws IOException
getScriptAsString
in interface ScriptSource
IOException
public String suggestedClassName()
suggestedClassName
in interface ScriptSource
public boolean isModified()
isModified
in interface ScriptSource