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

Fixes #178 #182

Merged
merged 2 commits into from
Nov 11, 2019
Merged

Fixes #178 #182

merged 2 commits into from
Nov 11, 2019

Conversation

kenfinnigan
Copy link
Contributor

No description provided.


import org.eclipse.microprofile.config.spi.ConfigSource;

public abstract class AbstractConfigSource implements ConfigSource, Serializable {
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs a serialVersionUID.

@kenfinnigan
Copy link
Contributor Author

kenfinnigan commented Nov 9, 2019 via email

@dmlloyd
Copy link
Contributor

dmlloyd commented Nov 9, 2019

Ah I didn't realize that it was a goal to be able to use these config sources with other implementations. Even the default ones?

@dmlloyd
Copy link
Contributor

dmlloyd commented Nov 9, 2019

TBH I'm not sure this is a worthwhile goal. Does it really make sense? What is an example use case?

@kenfinnigan
Copy link
Contributor Author

It's just the parents that would need to be extracted actually. The default ones can still be inside the main impl.

It's a two-part goal. One is because that was the goal of MP Extensions, which we're accepting a donation from, and two it would help drive usage and adoption of SmallRye, possibly with a view to users/implementors switching to the full config impl at some point

@dmlloyd
Copy link
Contributor

dmlloyd commented Nov 9, 2019

Okay so then I guess the strategy could be:

  • Put the base classes and common utils in one module which only depends on the API
  • Implementation contains the built-in default sources, depends on CS base module
  • Sources modules depend only on CS base module

@kenfinnigan
Copy link
Contributor Author

That's a good explanation of what I was thinking, thanks

@dmlloyd
Copy link
Contributor

dmlloyd commented Nov 9, 2019

👍 Sorry for being dense!

@kenfinnigan
Copy link
Contributor Author

To be fair, I wasn't really explaining what I was thinking.

So the clarification was good for both of us

@kenfinnigan
Copy link
Contributor Author

Ok, think we're on the right track now

@kenfinnigan kenfinnigan merged commit dbd4c8e into smallrye:master Nov 11, 2019
@kenfinnigan
Copy link
Contributor Author

Thanks @dmlloyd. Do you think this warrants a bump to 1.4.x?

@kenfinnigan kenfinnigan deleted the config-source-extraction branch November 11, 2019 19:18
@dmlloyd
Copy link
Contributor

dmlloyd commented Nov 11, 2019

Yes I think that's reasonable. There are now two artifacts to dependency-manage which is a pretty substantial change.

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.

2 participants