Skip to content

Conversation

@jaymode
Copy link
Member

@jaymode jaymode commented Feb 10, 2020

This commit changes how RestHandlers are registered with the
RestController so that a RestHandler no longer needs to register itself
with the RestController. Instead the RestHandler interface has new
methods which when called provide information about the routes
(method and path combinations) that are handled by the handler
including any deprecated and/or replaced combinations.

This change also makes the publication of RestHandlers safe since they
no longer publish a reference to themselves within their constructors.

Closes #51622

Co-authored-by: Jason Tedor [email protected]

Backport of #51950

This commit changes how RestHandlers are registered with the
RestController so that a RestHandler no longer needs to register itself
with the RestController. Instead the RestHandler interface has new
methods which when called provide information about the routes
(method and path combinations) that are handled by the handler
including any deprecated and/or replaced combinations.

This change also makes the publication of RestHandlers safe since they
no longer publish a reference to themselves within their constructors.

Closes elastic#51622

Co-authored-by: Jason Tedor <[email protected]>

Backport of elastic#51950
@jaymode jaymode added :Core/Infra/REST API REST infrastructure and utilities backport labels Feb 10, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/REST API)

@jaymode jaymode merged commit 3edadfe into elastic:7.x Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Core/Infra/REST API REST infrastructure and utilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants