Reed Copsey gave this response to the following SO Question:
Which design patterns can be applied to the configuration settings problem?
I prefer to create an interface for setting query, loading, and saving. By using dependency injection, I can inject this into each component that requires it.
Can someone give a code example of this? For instance a Settings class for an Email Client and another Settings class for a FTP Client based on this "interface" that can be DI. I understand that you can do a global singleton for all settings within the application (which I am currently doing) but this recommendations from Reed is interesting and would like to try it out.