How about moving the class generation to runtime. In your reloading
codes, the elements referred to by the accessor methods are
synchronized at runtime. The current code generating style is similar
to the style of BCEL (bcel.sf.net) and this package support
generating/loading new classes at runtime. This way, the compiler will
generate only interface for compiling time checking and the impl
classes will be generated at runtime.
I am using BCEL to support loading of uncompiled new files and it's
getting close to working now. I have to rewrite much of the
ClassGenerator in term of BCEL, thu.
David
On Thursday, Nov 21, 2002, at 19:36 Asia/Shanghai, Richard Kunze wrote:
On Thursday 21 November 2002 12:04, Chris Webb wrote:
Mark,
I agree with you on this. This change would be a completely different
beast to the current XMLC. If we lose the convenience methods then we
would lose the ability to create interfaces to abstract the dynamic
requirements of each document and thus compile time checking of
dynamic
content compliancy. We use these dynamic content interfaces
extensively
for multiple look and feels for HTML, WML and VoiceXML.
Same here, I use the conevenience methods quite often, and for much
the same
reasons. But I definitely see that there are cases where they are not
needed.
I'd like to support both in XMLC, and I think the best way to do this
is to
make the code generation process easier to change - probably by making
it
template driven.
What do you think?
Richard
--
Richard Kunze
[ t]ivano Software, Bahnhofstr. 18, 63263 Neu-Isenburg
Tel.: +49 6102 80 99 07 - 0, Fax.: +49 6102 80 99 07 - 1
http://www.tivano.de, kunze@xxxxxxxxx
_______________________________________________
XMLC mailing list
XMLC@xxxxxxxxxxx
http://www.enhydra.org/mailman/listinfo.cgi/xmlc
|