Wim's Conf Proposal
alex black <[email protected]>
| Newsgroups | gmane.comp.lib.binarycloud.devel |
|---|---|
| Message-ID | <[email protected]> |
hi all, I like wim's conf proposal. Some points: -I would very much like to see no XML. Database would be _much_ better. -The basic path-keys are very good. They would be easy to catalog and they impose a little logical structure on the values -We could use damn-near the same code for string IDs if we chose to use them (more on that in a minute) -I propose to kill aliases until such time as we deem them necessary to the core. -I propose to kill the method "change()" and keep "set()". -I propose to kill the method "locate()" which seems to be file-specific.? -I propose to kill the method "value()" since it does the same thing as get()? -I propose to have set() throw exceptions if there are problems connecting or the value is bad. -I like manuel's idea to have 'levels' in a single table. (factory, workspace, user) -Do people believe "user" is a good idea? (We could allow conf to be used in runtime systems for pref storage - it's a perfect dictionary storage thing that could use SimpleEntity. -I propose to have _no_ preloading of configuration values - they should be fetched and cached by conf only when requested. So basically I am proposing that conf use a 'dictionary' simpleEntity with very basic read/write methods that include simple validation. I would like to see Locale use this same dictionary simpleEntity for translation services using string keys that look the same as conf. We _could_ allow aliases in the dictionary entity so that string keys could reference other string keys. Do people agree with this? _alex