Add evaluation context passing to the evaluation config refiners
This commit is contained in:
@@ -100,10 +100,22 @@ class ScriptConfigurationRefinementContext(
|
|||||||
val collectedData: ScriptCollectedData? = null
|
val collectedData: ScriptCollectedData? = null
|
||||||
)
|
)
|
||||||
|
|
||||||
|
interface ScriptEvaluationContextDataKeys
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The container for script evaluation context data
|
||||||
|
* Used for transferring data to the evaluation refinement callbacks
|
||||||
|
*/
|
||||||
|
class ScriptEvaluationContextData(properties: Map<PropertiesCollection.Key<*>, Any>) : PropertiesCollection(properties) {
|
||||||
|
|
||||||
|
companion object : ScriptEvaluationContextDataKeys
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The facade to the script data for evaluation configuration refinement callbacks
|
* The facade to the script data for evaluation configuration refinement callbacks
|
||||||
*/
|
*/
|
||||||
class ScriptEvaluationConfigurationRefinementContext(
|
class ScriptEvaluationConfigurationRefinementContext(
|
||||||
val compiledScript: CompiledScript<*>,
|
val compiledScript: CompiledScript<*>,
|
||||||
val evaluationConfiguration: ScriptEvaluationConfiguration
|
val evaluationConfiguration: ScriptEvaluationConfiguration,
|
||||||
|
val contextData: ScriptEvaluationContextData? = null
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user