Skip to content

Consider making HttpServiceProxyFactory.Builder extensible for custom configuration tracking #34144

@bduisenov

Description

@bduisenov

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:

  1. Scanning classes annotated with @HttpExchange to check their base URLs
  2. Capturing endpoint information from rest clients configured through the builder
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions