Package org.apache.sling.scripting.api
Interface CachedScript
-
public interface CachedScript
TheCachedScript
provides an abstraction on top ofCompiledScript
such that compiled scripts can be cached for further executions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.script.CompiledScript
getCompiledScript()
Returns the compiled script which can be used for further executions / evaluations.java.lang.String
getScriptPath()
Returns the path of the script which was compiled and cached.
-
-
-
Method Detail
-
getScriptPath
java.lang.String getScriptPath()
Returns the path of the script which was compiled and cached.- Returns:
- the script's path
-
getCompiledScript
javax.script.CompiledScript getCompiledScript()
Returns the compiled script which can be used for further executions / evaluations.- Returns:
- the compiled script
-
-