Package com.blackbuild.klum.ast.runtime
Class KlumSchemaSupport
java.lang.Object
com.blackbuild.klum.ast.runtime.KlumSchemaSupport
Schema-authoring support for framework-managed lifecycle callbacks and closures.
-
Method Summary
Modifier and TypeMethodDescriptionstatic KlumValidationReporterReturns a reporter for the object currently receiving a framework-managed lifecycle callback or closure.static KlumValidationReporterklumValidationForObject(Object target) Returns a reporter that records issues fortarget.
-
Method Details
-
getKlumValidation
Returns a reporter for the object currently receiving a framework-managed lifecycle callback or closure.Groovy treats this getter as the
klumValidationproperty, allowing a static import such asimport static com.blackbuild.klum.ast.runtime.KlumSchemaSupport.klumValidation.- Returns:
- the current-object validation reporter
-
klumValidationForObject
Returns a reporter that records issues fortarget.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
-