How to allow users to control default parameters in the framework
Sep 26, 2006 23:50
Configuration files placed in the classpath before framework configuration files will get the precedence
If user wants to override the default value supplied by the framework all she has to do is to place a config file with her values into the classpath. NB. Need to see how the classloader provides the files. May need to implement something custom to take a few values custom supplied by the user and use the rest from the main config file. Or maybe always automatically try to preload the user config (which may or may not be there) as a part of parameter provider chain
Look into ClassLoader.findResources()
A user-friendly UI to visualize default values and help with the creation of the overriding config file