In large and complex software products, managing custom settings is becoming a major pain. Two approaches that I saw to the problem:
- each component of the system loads its own configuration from configuration files or registry settings.
- has a settings loader class that loads all customizable system settings and each component requests a settings loader for its settings.
These approaches seem wrong to me.
Are there any design patterns that can be used to simplify the problem? Perhaps something that will use dependency injection technology.
design-patterns application-settings configuration configuration-files
paxos1977 Aug 22 '09 at 0:06 2009-08-22 00:06
source share