Interface EscalationArchitect
public interface EscalationArchitect
Architect for configuring global escalation handling via composition.
-
Method Summary
Modifier and TypeMethodDescriptionaddEscalation(String escalationTypeName, String resourceLocation, PropertyList properties) Adds a singleOfficeEscalationhandler loaded from the given resource.voidaddEscalations(String escalationDirectory, PropertyList properties) Loads all escalation handlers from the given directory.
-
Method Details
-
addEscalation
OfficeEscalation addEscalation(String escalationTypeName, String resourceLocation, PropertyList properties) throws Exception Adds a singleOfficeEscalationhandler 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-PropertyListfor configuration.- Returns:
- Added
OfficeEscalation. - Throws:
Exception- If fails to add the escalation.
-
addEscalations
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-PropertyListfor configuration.- Throws:
Exception- If fails to add the escalations.
-