Salut All,

I'd like to suggest some additions to the keel-client module to avoid
code duplications concerning the creation of dynabeans, the translation
of messages (including error messages). E. g. clnt-struts and
clnt-eclipse-swt share a lot of code which handles input/output/command
objects and the translation of messages (the eclipse client seems to be
incomplete). With the additions I'm proposing here it should be possible
to share common behaviour across different clients. 

There are three abstract classes (AbstractClientBeanCreator,
AbstractClientErrorHandler, AbstractClientTranslator) with corresponding
interfaces which contain most of the functionality. There are only 8
methods to implement (6 of them are simple getter/setter methods). "Most
of the work" for client implementors has to be done in the client
translator (method "translateInternal").

As an example I committed a scetch (I think it should run) for the use
with StrutsClientConnector. You can find my suggestions in the
scratchpad folder "keel-client".

What do you think?

Cheers,

Aleks

http://keelframework.org/documentation
Keelgroup mailing list
[EMAIL PROTECTED]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com

Reply via email to