Package com.e1c.g5.v8.dt.internal.check
Class ICheckExecutor.CheckContextCollector
java.lang.Object
com.e1c.g5.v8.dt.internal.check.ICheckExecutor.CheckContextCollector
- Enclosing interface:
- ICheckExecutor
Check context collector. Used to prepare contexts during the check cycle
-
Constructor Summary
ConstructorsConstructorDescriptionCheckContextCollector
(Map<String, String> additionalContext) Constructs check context collector -
Method Summary
-
Constructor Details
-
CheckContextCollector
Constructs check context collector- Parameters:
additionalContext
- Additonal context. Cannot benull
-
-
Method Details
-
getContexts
Gets collectred contexts- Returns:
- The map of contexts to check UIDS. Cannot be
null
-
getOrCreateContext
public Object getOrCreateContext(CheckUid checkUid, Function<Map<String, String>, Object> contextFactory) Gets existing or creates a new context- Parameters:
checkUid
- The check UID. Cannot benull
contextFactory
- The check-specific context factory. Receives additional context collection context on creation. Cannot benull
-