You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment EndpointFilter takes an EndpointInfo and a EndpointDiscoverer. The latter is odd as discovering the endpoints (again?) as part of the filtering shouldn't add a lot of value on the filtering of a particular item.
In practice, this argument is used to check the implementation type of the discoverer as way to identify the "nature" of the search:
class WebEndpointFilter implements EndpointFilter<WebOperation> {
@Override
public boolean match(EndpointInfo<WebOperation> info,
EndpointDiscoverer<WebOperation> discoverer) {
return (discoverer instanceof WebAnnotationEndpointDiscoverer);
}
}
Rather than passing an object which seems unrelated, perhaps we could pass a "Scope" object of some kind that implementations can use to restrict themselves. The scope might be as magic as the EndpointDiscoverer though.
This is a bit related to #10257 as we might be interested by all "Web" endpoints regardless to the fact they are "regular" web endpoints or "custom" web endpoints. The discoverer won't be the same in that case.
The text was updated successfully, but these errors were encountered:
Perhaps just Class<? extends EndpointDiscoverer> would be enough of a signal that it's only the discoverer type that's of interest. Extracting both to a context would perhaps be even better.
Uh oh!
There was an error while loading. Please reload this page.
At the moment
EndpointFilter
takes anEndpointInfo
and aEndpointDiscoverer
. The latter is odd as discovering the endpoints (again?) as part of the filtering shouldn't add a lot of value on the filtering of a particular item.In practice, this argument is used to check the implementation type of the discoverer as way to identify the "nature" of the search:
Rather than passing an object which seems unrelated, perhaps we could pass a "Scope" object of some kind that implementations can use to restrict themselves. The scope might be as magic as the
EndpointDiscoverer
though.This is a bit related to #10257 as we might be interested by all "Web" endpoints regardless to the fact they are "regular" web endpoints or "custom" web endpoints. The discoverer won't be the same in that case.
The text was updated successfully, but these errors were encountered: