Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.51 KB

File metadata and controls

44 lines (33 loc) · 1.51 KB

objconfig - YAML\JSON Config Wrapper

HowTo

Main interface is ConfigurationSection All configs implements it
There is also two loaders

  • JsonConfiguration for json
  • YamlConfiguration for yaml
public void loadConfig(String validJson){
    JsonConfiguration jsonConfig = JsonConfiguration.loadConfiguration(validJson);
    //valid json is valid yaml
    YamlConfiguration yamlConfig = YamlConfiguration.loadConfiguration(validJson);
}

There is detailed documentation for main classes and simple named methods, so it would not be hard

Migrate to 2.0.0

There is only one really important point

  • createConfigurationSection() now not return section if it exists. This section will be ERASED and new created section will be returned, so be carefully
    • getOrCreateSection() method will work as old createConfigurationSection() method