73 | | * Class {{{Configuration}}} |
| 73 | * Class {{{ConfigEntry}}} that extends {{{ListEntry}}} |
| 74 | * This class represents a key-value pair in a configuration file. |
| 75 | * Override {{{getKey}}} to return a {{{ConfigKey}}}. |
| 76 | |
| 77 | * Class {{{Configuration}}} - represents a single configuration file. |
| 78 | * configuration file - File |
| 79 | * list of {{{ConfigEntry}}}s that stores all key-value pairs in that file. |
| 80 | * get......... returns the default value........ |
| 81 | |
| 82 | * Class {{{ConfigurationPersister}}} that loads/saves configuration files. |
| 83 | * .......... |
| 84 | * Register the persister as an extension. |
| 85 | |
| 86 | * Singleton class {{{ConfigurationManager}}}. |
| 87 | * {{{T get(ConfigKey<T> key)}}} |
| 88 | * Given the file name in the key, finds the corresponding Configuration and then returns the value for that key. |
| 89 | * {{{set(ConfigKey<T> key, T value)}}} |
| 90 | * Given the file name in the key, finds the corresponding Configuration. |
| 91 | * Sets the new value for that key. |
| 92 | * Saves the configuration using the persister. |
| 93 | * Map<String, Configuration>, which maps Configuration objects to configuration file names. |