Interface EscalationArchitect


public interface EscalationArchitect
Architect for configuring global escalation handling via composition.
  • Method Details

    • addEscalation

      OfficeEscalation addEscalation(String escalationTypeName, String resourceLocation, PropertyList properties) throws Exception
      Adds a single OfficeEscalation handler loaded from the given resource.
      Parameters:
      escalationTypeName - Fully-qualified name of the exception type being handled.
      resourceLocation - Classpath location of the composition YAML file.
      properties - PropertyList for configuration.
      Returns:
      Added OfficeEscalation.
      Throws:
      Exception - If fails to add the escalation.
    • addEscalations

      void addEscalations(String escalationDirectory, PropertyList properties) throws Exception
      Loads all escalation handlers from the given directory.

      Each YAML file in the directory should be named after the fully-qualified exception class it handles (e.g., java.io.IOException.yml).

      Parameters:
      escalationDirectory - Classpath directory containing the escalation composition YAML files.
      properties - PropertyList for configuration.
      Throws:
      Exception - If fails to add the escalations.