Re: General Question about Config Files and IoC
peter-4lf8KW9E9MLMqX/[email protected] Wed, 18 Feb 2004 12:37:51 +1100
| Newsgroups | gmane.comp.java.jcontainer.interest |
|---|---|
| Message-ID | <003a01c3f5bf$d2487b30$21e7809d@fisg2> |
Hi, > I'm sure there are good reasons to use an interface, but I'd like to > hear some concrete examples, because this is an issue that I think about > a lot. It seems to me that there is a lot of overhead to extract out > and maintain a well-documented interface that duplicates the real class, > "just in case someone ever wants an alternate implementation". I have > trouble thinking of real examples that justify this extra work. I tend to agree with you. I separate out the data represetation classes (ie ObjectAConfig) and the "builder" classes responsible for loading the data from various sources. Separate concerns deserve separate classes IMO