You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Hardee, Tony" <To...@ps.net> on 2001/05/14 18:37:34 UTC

Design Suggestion

I have a situation where it would be useful if the ActionForm was an
interface rather than an abstract class.  Basically, I had developed some
subclasses of ActionForm that I found useful.  I am now integrating with
another developer who also has useful subclasses of ActionForms.
Unfortunately the implementations are orthogonal.  They create a situation
that could be solved with multiple inheritance.  Since multiple inheritance
is neither supported nor desired, the best solution involves the ability to
extend ActionForm with interfaces rather than through inheritance.

Does anyone know why the ActionForm should not be defined as an interface
with a BasicActionForm providing the current implementation?

Would anyone care to caution me on making this change within my own version
of struts?