-
Notifications
You must be signed in to change notification settings - Fork 514
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
[DEV] Create new configuration management #347
Comments
Who is doing this? This task is blocking a lot of other issues |
As @sgdc3 mention me, we need to make something equivalent to Yamler does : By the way we actually need some things :
Feel free to add some tasks/comments here @sgdc3 : I was feeling to do not split the configuration in differents .yml file, but get a splitted structure in the same config.yml , like Essentials does |
enum system will be done by me |
ok nice ;) |
I'm working on a new CustomConfiguration management |
I have done an enum-like setup on the branch. Enums weren't possible because of generics but basically a config file would have public static final Property<Boolean> REMOVE_PASSWORD_FROM_CONSOLE =
// property type, property path (in the file), default value
newProperty(PropertyType.BOOLEAN, "security.removePasswordFromConsole", true); Retrieving a setting would be something along the lines of String smtpServer = settings.getProperty(EmailConfig.SMTP_SERVER); What's nice about this:
What's not nice about this:
|
Todo @ljacqu:
Since setting values are used extensively, we will need to migrate step by step to the new class, i.e. we'll have Settings and NewSettings for some time |
I think it's been proven that this issue contains way too much content. Referencing this issue number, I've implemented a new settings management class based on Xephi's. Currently, it co-exists with the old settings class. |
No description provided.
The text was updated successfully, but these errors were encountered: