Package org.craftercms.engine.scripting
Interface Script
-
- All Superinterfaces:
org.craftercms.core.util.cache.CachingAwareObject
- All Known Implementing Classes:
GroovyScript
public interface Script extends org.craftercms.core.util.cache.CachingAwareObject
Simple interface for scripts in some non-Java language (Groovy, Jython, Javascript, etc) that can be retrieved from the Crafter content store and executed inside the JVM.- Author:
- Alfonso Vásquez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
execute(Map<String,Object> variables)
String
getUrl()
-
-
-
Method Detail
-
getUrl
String getUrl()
-
execute
Object execute(Map<String,Object> variables) throws ScriptException
- Throws:
ScriptException
-
-