--- Adam Hardy <[EMAIL PROTECTED]> wrote: > I think if you look at StrutsStatics it's not really the constant interface > antipattern. > > It has just 6 constants which are the keys to retrieve the HTTP servlet api > objects from whichever maps.
That's the constant interface antipattern; an interface used only to hold constants, implemented by classes to avoid a small amount of typing. > I guess if StrutsStatics was subject to a round of refactoring, the code > for retrieving those API objects would be put into a utility class, with the > constants too. I don't think I'd put the code to retrieve the objects into the utils. I'd just put the constants into a new or existing class and deal with the extra typing. Especially since a StrutsConstants class already exists. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]