You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 10, 2021. It is now read-only.
You have to create a class which implements ConfigDataInterface for loading the params in your config.
publicclassConfigLoader {
// I did into an inner class for keeping a bit more organizedpublicclassConfigDataStore {
privatebooleanvariable1;
publicvoidsetV1(booleanv1) {
this.variable1 = v1;
}
publicbooleanisV1() {
returnthis.variable1;
}
}
@OverridepublicvoidloadParams(FileConfigurationfc) {
this.setV1(fc.getBoolean("variable1"));
}
}
In order to get it be loaded correctly, you have to pass an instance of "ConfigLoader" to the init method.