Class YamlEventLoader

java.lang.Object
com.iantapply.orchestra.adapter.yaml.YamlEventLoader

public final class YamlEventLoader extends Object
Loads schema-versioned event definitions with path-specific validation errors.
  • Field Details

    • SCHEMA_VERSION

      public static final int SCHEMA_VERSION
      Current event document schema.
      See Also:
  • Constructor Details

    • YamlEventLoader

      public YamlEventLoader()
      Creates a stateless YAML event loader.
  • Method Details

    • load

      public com.iantapply.orchestra.api.EventDefinition load(Path path) throws IOException
      Loads one event definition.
      Parameters:
      path - regular YAML file to load
      Returns:
      validated immutable event definition
      Throws:
      IOException - when the path is not a readable regular file
      IllegalArgumentException - when the definition is invalid