How mattbertolini/spring-annotated-web-data-binder works
Core Components (Center
• Annotation definitions (@RequestBean, @FormParameter, etc.)
• Property resolvers
• Introspection components
Integration Modules (Two Main Branches)
a. Spring MVC Integration (Left Branch):
• WebMVC Binder Module
• Property Resolvers specific to ServletRequest
• MVC Auto-configuration
b. Spring WebFlux Integration (Right Branch):
• WebFlux Binder Module
• Reactive Property Resolvers
• WebFlux Auto-configuration
Data Flow Layers (Top to Bottom)
• HTTP Request Layer
• Headers, Cookies, Form Data, Query Parameters
• Binding Layer
• Property Resolvers
• Type Conversion
• Validation
• Bean Population Layer
• Target Objects
• Nested Beans
Spring Boot Integration (Top Layer)
• Spring Boot Starter modules
• Auto-configuration components
Key Relationships
• HTTP Request → Property Resolvers → Bean Population
• Integration points with Spring Framework
• Extension points for custom resolvers
Implementation Details
• Annotation Processing Flow
• Bean Introspection Pipeline
• Property Resolution Chain
• Type Conversion System
Additional Elements
• Version compatibility information
• Required dependencies (Spring 5.3.8+, Java 8+)
• Validation integration points
Key Considerations:
• Keep the core binding mechanism central and clearly visible
• Parallel nature of MVC and WebFlux support
• Clear separation between runtime and configuration components
• Where custom extensions can be added
• Error handling and validation flows
Remember to use consistent styling:
• Clear grouping of related components
• Proper spacing between different layers
This design should clearly communicate how the library achieves its goal of providing JAX-RS style binding while maintaining Spring's programming model and conventions.