Hi Spring Team,
I would like to propose making org.springframework.web.service.invoker.HttpServiceProxyFactory.Builder non-final to allow for extension and customization of the builder process.
Use Case:
In our projects, we provide the HttpServiceProxyFactory.Builder as a prototype-scoped bean that is used whenever @HttpExchange is configured. We need to collect and track all endpoints that are configured for HttpExchange classes across our application for monitoring and documentation purposes. This involves:
- Scanning classes annotated with
@HttpExchange to check their base URLs
- Capturing endpoint information from rest clients configured through the builder
- Maintaining a centralized registry of all Http service endpoints
Limitation:
While we can scan HttpExchange classes for base urls, we cannot capture the complete picture because the Builder class is final, preventing us from extending it.