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 java.lang.Object
implements ScriptEvaluator

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

Author:
Radovan Semancik

Constructor Summary
Jsr223ScriptEvaluator(java.lang.String engineName, PrismContext prismContext)
           
 
Method Summary
<T> java.util.List<PrismPropertyValue<T>>
evaluate(ScriptExpressionEvaluatorType expressionType, ScriptVariables variables, ItemDefinition outputDefinition, ScriptExpressionReturnTypeType suggestedReturnType, ObjectResolver objectResolver, MidPointFunctions functionLibrary, java.lang.String contextDescription, OperationResult result)
           
 java.lang.String getLanguageName()
          Returns human readable name of the language that this evaluator supports
 java.lang.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(java.lang.String engineName,
                             PrismContext prismContext)
Method Detail

evaluate

public <T> java.util.List<PrismPropertyValue<T>> evaluate(ScriptExpressionEvaluatorType expressionType,
                                                          ScriptVariables variables,
                                                          ItemDefinition outputDefinition,
                                                          ScriptExpressionReturnTypeType suggestedReturnType,
                                                          ObjectResolver objectResolver,
                                                          MidPointFunctions functionLibrary,
                                                          java.lang.String contextDescription,
                                                          OperationResult result)
                                               throws ExpressionEvaluationException,
                                                      ObjectNotFoundException,
                                                      ExpressionSyntaxException
Specified by:
evaluate in interface ScriptEvaluator
Throws:
ExpressionEvaluationException
ObjectNotFoundException
ExpressionSyntaxException

getLanguageName

public java.lang.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 java.lang.String getLanguageUrl()
Description copied from interface: ScriptEvaluator
Returns URL of the language that this evaluator can handle

Specified by:
getLanguageUrl in interface ScriptEvaluator


Copyright © 2012 evolveum. All Rights Reserved.