Skip to content
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

core: Add NameResolverRegistry #5586

Merged
merged 2 commits into from
Apr 22, 2019
Merged

Conversation

ejona86
Copy link
Member

@ejona86 ejona86 commented Apr 12, 2019

NameResolverRegistry takes on all the logic previously in
NameResolverProvider. But it also allows manual registration of
NameResolvers, which is useful when the providers have complex
construction or need objects injected into them.

This also avoids a circular dependency during class loading since
previously loading any Provider searched for all Providers via
ClassLoader since ClassLoader handling was static within the parent
class.

Fixes #5562

CC @ST-DDT

NameResolverRegistry takes on all the logic previously in
NameResolverProvider. But it also allows manual registration of
NameResolvers, which is useful when the providers have complex
construction or need objects injected into them.

This also avoids a circular dependency during class loading since
previously loading any Provider searched for all Providers via
ClassLoader since ClassLoader handling was static within the parent
class.

Fixes grpc#5562
@ejona86
Copy link
Member Author

ejona86 commented Apr 19, 2019

Rebased past grpc-api creation

@ejona86 ejona86 merged commit f4d48fe into grpc:master Apr 22, 2019
@ejona86 ejona86 deleted the name-resolver-registry branch April 22, 2019 17:22
@lock lock bot locked as resolved and limited conversation to collaborators Jul 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for custom attributes in NameResolver.Helper
3 participants