Skip to content

Allow actuator endpoints to inject an enum indicating what to produce #25738

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
philwebb opened this issue Mar 19, 2021 · 0 comments
Closed

Allow actuator endpoints to inject an enum indicating what to produce #25738

philwebb opened this issue Mar 19, 2021 · 0 comments
Labels
type: enhancement A general enhancement
Milestone

Comments

@philwebb
Copy link
Member

In order to implement #25564 we need some actuator updates that will allow us to inject an enum that tells us what to produce. This will be a generalization of the ApiVersion enum functionality that we already support.

@philwebb philwebb added the type: enhancement A general enhancement label Mar 19, 2021
@philwebb philwebb added this to the 2.5.x milestone Mar 19, 2021
philwebb pushed a commit that referenced this issue Mar 19, 2021
Update the actuator @Enpoint` infrastructure code so that operations
may inject enums that indicate the type of output to produce. A new
`Producible` interface can be implemented by any enum that indicates
the mime-type that an enum value produces.

The new `OperationArgumentResolver` provides a general strategy for
resolving operation arguments with `ProducibleOperationArgumentResolver`
providing support for `Producible` enums. Existing injection support has
been refactored to use the new resolver.

See gh-25738
@philwebb philwebb modified the milestones: 2.5.x, 2.5.0-M3 Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant