Class ScriptCache<I,C>
- java.lang.Object
-
- com.evolveum.midpoint.model.common.expression.script.ScriptCache<I,C>
-
- Type Parameters:
C
- compiled code
public class ScriptCache<I,C> extends Object
Cache for compiled scripts and interpreters, aware of expression profiles.- Author:
- Radovan Semancik
-
-
Constructor Summary
Constructors Constructor Description ScriptCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
C
getCode(ExpressionProfile profile, String sourceCodeKey)
I
getInterpreter(ExpressionProfile profile)
void
putCode(ExpressionProfile profile, String sourceCodeKey, C compiledCode)
void
putInterpreter(ExpressionProfile profile, I interpreter)
-
-
-
Method Detail
-
getInterpreter
public I getInterpreter(ExpressionProfile profile)
-
putInterpreter
public void putInterpreter(ExpressionProfile profile, I interpreter)
-
getCode
public C getCode(ExpressionProfile profile, String sourceCodeKey)
-
putCode
public void putCode(ExpressionProfile profile, String sourceCodeKey, C compiledCode)
-
clear
public void clear()
-
-