com.evolveum.midpoint.common.expression.script.jsr223
Class Jsr223ScriptEvaluator

java.lang.Object
  extended by com.evolveum.midpoint.common.expression.script.jsr223.Jsr223ScriptEvaluator
All Implemented Interfaces:
ScriptEvaluator

public class Jsr223ScriptEvaluator
extends Object
implements ScriptEvaluator

Expression evaluator that is using javax.script (JSR-223) engine.

Author:
Radovan Semancik

Constructor Summary
Jsr223ScriptEvaluator(String engineName, PrismContext prismContext)
           
 
Method Summary
<T> List<PrismPropertyValue<T>>
evaluate(ScriptExpressionEvaluatorType expressionType, ScriptVariables variables, ItemDefinition outputDefinition, ScriptExpressionReturnTypeType suggestedReturnType, ObjectResolver objectResolver, Collection<FunctionLibrary> functions, String contextDescription, OperationResult result)
           
 String getLanguageName()
          Returns human readable name of the language that this evaluator supports
 String getLanguageUrl()
          Returns URL of the language that this evaluator can handle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jsr223ScriptEvaluator

public Jsr223ScriptEvaluator(String engineName,
                             PrismContext prismContext)
Method Detail

evaluate

public <T> List<PrismPropertyValue<T>> evaluate(ScriptExpressionEvaluatorType expressionType,
                                                ScriptVariables variables,
                                                ItemDefinition outputDefinition,
                                                ScriptExpressionReturnTypeType suggestedReturnType,
                                                ObjectResolver objectResolver,
                                                Collection<FunctionLibrary> functions,
                                                String contextDescription,
                                                OperationResult result)
                                     throws ExpressionEvaluationException,
                                            ObjectNotFoundException,
                                            ExpressionSyntaxException
Specified by:
evaluate in interface ScriptEvaluator
Throws:
ExpressionEvaluationException
ObjectNotFoundException
ExpressionSyntaxException

getLanguageName

public String getLanguageName()
Description copied from interface: ScriptEvaluator
Returns human readable name of the language that this evaluator supports

Specified by:
getLanguageName in interface ScriptEvaluator

getLanguageUrl

public String getLanguageUrl()
Description copied from interface: ScriptEvaluator
Returns URL of the language that this evaluator can handle

Specified by:
getLanguageUrl in interface ScriptEvaluator


Copyright © 2013 evolveum. All Rights Reserved.