Sean Keane wrote:Classes implement interfaces and follow the IS-A rule. To say a class implements an interface that is only full of constants makes no sense from a design point of view.
I totally agree, Sean. This is another reason why I wouldn't take this approach if I had to do it again. This idea of constants in an interface was applied a looooong time ago, so this is also old fashioned.
Another thing that can be done for is, an enum can be created to contain these metadata constants. Something like this:
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD