Hi all. Searched the site but couldn't seem to find anything
detailing how to do this. The docs mention that mappings can be
done in four different ways and mentions something about compiling
a mapping to increase speed. I have not been able to find anything
on this topic and I'm not sure if castor supports what I want: What
I'd like to do is somehow compile an XML mapping into some sort of
mapping object that I can just hand to the marshaller at runtime. The
idea here, being to avoid the whole expensive process of reading in
the mapping file and parsing it right before marshalling. However,
I'd rather not generate a class that my java objects must implement
(as most of the generation examples do). I like the fact that using
a mapping.xml file to touch the outside of the classes separates the
mapping process from the classes (meaning I don't have to change the
classes in any). I'd just like to speed up the process. Perhaps I can
serialize the Mapping objects somehow and then just load it at runtime?
I'm not sure if I'm being clear, so I'll just ramble on a bit more.
Essentially I'd like this sort of model:
1. User writes a mapping file
2. Mapping file gets compiled to schema object used for translation
3. Schema object gets loaded at runtime
4. Marshaller uses schema object to marshal an object
Is that sort of model possible with Castor? Or must I stick with
loading the mapping xml files at runtime to achieve this usage
paradigm?
-- Mike
--
Michael Gilfix
[EMAIL PROTECTED]
For my gpg public key:
http://www.eecs.tufts.edu/~mgilfix/contact.html
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev