-
Notifications
You must be signed in to change notification settings - Fork 483
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
Support dynamic configs of different kinds, not just String #405
Conversation
NetflixOSS » archaius » archaius-pull-requests #223 SUCCESS |
archaius-pull-requests #389 SUCCESS |
String next = p.get(INCLUDE_KEY); | ||
if (next != null) { | ||
Object next = p.get(INCLUDE_KEY); | ||
if (next != null && next instanceof String) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next should only ever be a string. It's OK to keep next as a String.
String next = (String)p.get(INCLUDE_KEY);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback, @elandau. Made the suggested change.
This is very useful for remote TypesafeConfigLoader, which I’m going to add in a different pull request. It makes it possible to enhance the config with objects of type Duration/Date/ConfigList/ConfigMemorySize/etc.
NetflixOSS » archaius » archaius-pull-requests #224 SUCCESS |
archaius-pull-requests #390 SUCCESS |
Code LGTM. @costimuraru Is this part of your efforts to support java.time.Duration? |
Indeed it is @howardyuan. [0] https://java.com/en/download/faq/java_7.xml LE: Only the |
archaius-pull-requests #391 FAILURE |
NetflixOSS » archaius » archaius-pull-requests #225 FAILURE |
archaius-pull-requests #392 SUCCESS |
NetflixOSS » archaius » archaius-pull-requests #226 SUCCESS |
This is very useful for the remote TypesafeConfigLoader, which I’m going to add in a different pull request. It makes it possible to enhance the config with objects of type
Duration
,Date
and others.Relates to #403