Class Scripting
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.scripting.Scripting
-
public class Scripting extends Object
- Author:
- Bogdan Stefanescu
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Scripting.GroovyScript
static class
Scripting.MvelScript
static interface
Scripting.Script
-
Field Summary
Fields Modifier and Type Field Description protected static Map<String,Scripting.Script>
cache
protected static GroovyScripting
gscripting
-
Constructor Summary
Constructors Constructor Description Scripting()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Object>
initBindings(OperationContext ctx)
static Expression
newExpression(String expr)
static Expression
newTemplate(String expr)
static void
run(OperationContext ctx, URL script)
-
-
-
Field Detail
-
cache
protected static final Map<String,Scripting.Script> cache
-
gscripting
protected static final GroovyScripting gscripting
-
-
Method Detail
-
newExpression
public static Expression newExpression(String expr)
-
newTemplate
public static Expression newTemplate(String expr)
-
run
public static void run(OperationContext ctx, URL script) throws OperationException, IOException
- Throws:
OperationException
IOException
-
initBindings
public static Map<String,Object> initBindings(OperationContext ctx)
-
-