Pre-execution checks for CommandHandler #57
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature Request
Summary
A system providing the ability for checks before the execution of the execute method, is needed.
Required workarround
Each check (i.e. if the session is associated with a user) has to be evaluated in the execute method. This includes responding to the request early, if a requirement is not met, and aborting further execution.
It quickly leads to a degradation of code quality as code is duplicated.
Description
The system builds on the FunctionalInterface annotation allowing for both named classes and stateless lambda.
The checks are evaluated by the
CommandRouter. If all checks pass, the execute method is invoked. If not, theResponsereturned by the check is dispatched to the client.Checklist
assigned to @lars.winzer
created branch
feat/57-pre-execution-checks-for-commandhandlerto address this issueadded 1h 50m of time spent at 2026-04-08 12:00:00 +0200
mentioned in merge request !86
mentioned in commit
795830cf02