Refactor SanitationChain builder to registry pattern
Maps annotation types to SanitationChain implementations via a registry,
eliminating the need to modify buildChain() when adding new sanitation types.
All existing public behavior and tests unchanged.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3b8f3a7 commit d6578f31323b0c9e0ecf45351f1154166735cfdc
@aljunggren aljunggren authored on 6 May
Showing 2 changed files
View
src/main/java/io/ljunggren/sanitizer/Sanitizer.java
View
src/main/java/io/ljunggren/sanitizer/sanitation/SanitationRegistry.java 0 → 100755