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

Common context #600

Merged
merged 15 commits into from
May 7, 2019
Merged

Common context #600

merged 15 commits into from
May 7, 2019

Conversation

tomas-langer
Copy link
Member

@tomas-langer tomas-langer commented Apr 18, 2019

First implementation of the common context described in #599

@tomas-langer tomas-langer self-assigned this Apr 18, 2019
@tomas-langer tomas-langer force-pushed the common-context branch 2 times, most recently from d52e0e8 to d3591ab Compare April 24, 2019 14:10
@tomas-langer tomas-langer changed the title WIP: Common context Common context May 2, 2019
@tomas-langer
Copy link
Member Author

Resolves #596

@tomas-langer
Copy link
Member Author

Added context id. Also the existing ListContextualRegistry now fully delegates to the common Context, so we no longer duplicate the functionality.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
common context.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
aseovic
aseovic previously approved these changes May 6, 2019
Copy link
Collaborator

@aseovic aseovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, this all looks good to me and I only had a few minor comments.

One thing that concerns me a bit is that this is all very similar to how gRPC Context works, but we probably won't be able to use it as a direct replacement, as gRPC internally uses and expects its own implementation. Will need to take a deeper look into it, and see if it's possible to adapt one context implementation to another.

spericas
spericas previously approved these changes May 6, 2019
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
@tomas-langer tomas-langer dismissed stale reviews from spericas and aseovic via 0361dde May 6, 2019 18:35
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
batsatt
batsatt previously approved these changes May 7, 2019
Copy link
Contributor

@batsatt batsatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't mean that the methods should be named differently depending on the argument type, just that they should have either "run" or "invoke". Anyway, this all looks good.

spericas
spericas previously approved these changes May 7, 2019
@tomas-langer tomas-langer dismissed stale reviews from spericas and batsatt via 6fb9d25 May 7, 2019 14:22
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
@tomas-langer tomas-langer merged commit 7147667 into helidon-io:master May 7, 2019
@tomas-langer tomas-langer deleted the common-context branch May 7, 2019 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants