-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature: Add some sort of reload helper #21
Labels
enhancement
New feature or request
Milestone
Comments
I think what you are suggesting is a configuration instance whose data can be reloaded. I've considered this before, but never got around to implementing it. Example sketch: interface MyConfig {
String someOption();
}
MyConfig config = readConfig();
assert config.someOption().equals("valueOne");
reloadConfig();
assert config.someOption().equals("valueTwo"); |
This will be easier to add in 2.0.0 since we will have a more standardized means of creating configuration instances with arbitrary behavior. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simple - add a "reload helper" object that allows you to return a config value, and also be reloaded. When reloaded the config value returned will change. I may propose an object in a future PR.
The text was updated successfully, but these errors were encountered: