Class ICheckExecutor.CheckContextCollector

java.lang.Object
com.e1c.g5.v8.dt.internal.check.ICheckExecutor.CheckContextCollector
Enclosing interface:
ICheckExecutor

public static class ICheckExecutor.CheckContextCollector extends Object
Check context collector. Used to prepare contexts during the check cycle
  • Constructor Details

    • CheckContextCollector

      public CheckContextCollector(Map<String,String> additionalContext)
      Constructs check context collector
      Parameters:
      additionalContext - Additonal context. Cannot be null
  • Method Details

    • getContexts

      public Map<CheckUid,Object> 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 be null
      contextFactory - The check-specific context factory. Receives additional context collection context on creation. Cannot be null