Class KlumSchemaSupport

java.lang.Object
com.blackbuild.klum.ast.runtime.KlumSchemaSupport

public final class KlumSchemaSupport extends Object
Schema-authoring support for framework-managed lifecycle callbacks and closures.
  • Method Details

    • getKlumValidation

      public static KlumValidationReporter getKlumValidation()
      Returns a reporter for the object currently receiving a framework-managed lifecycle callback or closure.

      Groovy treats this getter as the klumValidation property, allowing a static import such as import static com.blackbuild.klum.ast.runtime.KlumSchemaSupport.klumValidation.

      Returns:
      the current-object validation reporter
    • klumValidationForObject

      public static KlumValidationReporter klumValidationForObject(Object target)
      Returns a reporter that records issues for target.

      This is useful when one lifecycle callback needs to attach a diagnostic to another object in the same construction graph. It does not change lifecycle ordering or target ownership.

      Parameters:
      target - the Builder or completed DSL Object that receives the diagnostic
      Returns:
      a target-specific validation reporter