Class YamlEventLoader
java.lang.Object
com.iantapply.orchestra.adapter.yaml.YamlEventLoader
Loads schema-versioned event definitions with path-specific validation errors.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SCHEMA_VERSION
public static final int SCHEMA_VERSIONCurrent event document schema.- See Also:
-
-
Constructor Details
-
YamlEventLoader
public YamlEventLoader()Creates a stateless YAML event loader.
-
-
Method Details
-
load
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 fileIllegalArgumentException- when the definition is invalid
-