in reply to Passing Information between objects
You could have an object you pass around, or you could use a Singleton design pattern - to allow all classess/methods you care about to find the configuration information.
If you wrap use one of the many existing configuration file readers inside your singleton you'd also not be hard-wiring entries.
|
|---|