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

Config for Helidon 2.0 #1102

Merged
merged 27 commits into from
Dec 5, 2019
Merged

Conversation

tomas-langer
Copy link
Member

Resolves #1101

Meta configuration now based on Java service loader

  • ConfigSourceProvider - creates an instance of a config source based on a type (name -such as file) and meta configuration
  • PollingStrategyProvider - creates an instance of a polling strategy function based on a type and meta configuration (the function gets the target type instance and provides a polling strategy, where target type may be Path and instance a specific file on a files system)
  • RetryPolicyProvider - creates an instance of a retry policy based on type and meta configuration

The MetaConfig class is responsible for locating meta configuration, creating config sources, retry policies and polling strategies from metaconfiguration

@tomas-langer tomas-langer added this to the 2.0.0 milestone Oct 16, 2019
@tomas-langer tomas-langer self-assigned this Oct 16, 2019
@tomas-langer tomas-langer changed the title Meta config update WIP: Meta config update Oct 16, 2019
@tomas-langer tomas-langer changed the title WIP: Meta config update Meta config update (DO NOT MERGE) Oct 17, 2019
Verdent
Verdent previously approved these changes Oct 23, 2019
@tomas-langer tomas-langer changed the title Meta config update (DO NOT MERGE) Config for Helidon 2.0 (DO NOT MERGE) Nov 15, 2019
@tomas-langer
Copy link
Member Author

Also resolves #1113
Added MP Config implementation in Helidon SE, as this required the changes in previous commit.
This branch now becomes a 2.0 configuration branch.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Checkstyle and copyright fixes.

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>
Should be done as a separate change.
Fixed examples to work with new API

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>
Use constants for strings.

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>
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>
@tomas-langer tomas-langer changed the title Config for Helidon 2.0 (DO NOT MERGE) Config for Helidon 2.0 Nov 24, 2019
Copy link
Member

@tjquinno tjquinno left a comment

Choose a reason for hiding this comment

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

Joe asked me to look at metrics-related changes in the PR. I found three such files (all metrics tests), and those changes LGTM.

Copy link
Member

@ljnelson ljnelson left a comment

Choose a reason for hiding this comment

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

I've left some comments but probably this should just go in so we can see how it goes in practice.

@tomas-langer tomas-langer merged commit 1893efc into helidon-io:master Dec 5, 2019
@tomas-langer tomas-langer deleted the meta-config-update branch December 5, 2019 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Config meta configuration refactoring
4 participants