|
|
Full story
The core Java code for JCCL is a complete mess. Among other problems, it fails to:
- Do event notifications correctly when objects change.
- Make it possible to support support multiple separate views into configuration.
- Support a ConfigChunk version upgrade path
- Be readable
For some time now, I have been trying to refactor the existing code to no avail. The existing codebase is far to inflexible to support current configuration needs. Therefore, a complete rewrite of the core Java configuration code is required.
Implementation notes
I am renaming the following concepts in order to reduce the number of times I have to explain what a "Chunk" is:
- ConfigChunk is now ConfigElement
- ChunkDesc is now ConfigDefinition
- PropertyDesc is now PropertyDefinition
- A PropertyDesc's item is now a PropertyValueDefinition
I am also revising the configuration definition file format in order to simplify configuration definition lookup rules and to support versioning. All version of each configuration definition shall be located in its own file named token.jdef. A search path shall be used to locate the configuration definition files. This allows us to no longer require the monolithic configuration definition file.
9 June 2003
Allen, Patrick, and I discussed the merits of using an environment variable to specify the configuration definition lookup path or having the path defined in the configuration file. It was deemed that having the path defined in configuration files would potentially make those file not portable in terms of moving between systems and even directories on the samte system. On the other hand, I feel that requiring the use of yet another environment variable would take us a step back in terms of usability. The jury is still out on this one. In the mean time, since I've already put together the architecture for using a path specified in the configuration file, that is there right now.
Tasks in this story
Task details:
|
|
|
Copyright © 1999-2008 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding VRJ Wiki? Send feedback
|
|
Revision r1.6 - 26 Jan 2004 - 16:52 - AronBierbaum
|
Copyright © 1999-2008 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding VRJ Wiki? Send feedback
|
| |
|