At 04:45 PM 9/4/2006 +0200, Marco Loregian wrote:
Hi all,
I've been following the evolution of the project in the last months (by
downloading all versions, reading documentation and, occasionally, this
mailing list). I'd like to have a deeper knowledge of the architecture
from a developer's perspective. Since I am a Java developer, my question
is: is there any example or tutorial of how to create a Chandler parcel in
Java rather than Python? (First: is it possible?)
The short answer is no, it's not possible.
The long answer is, it's theoretically possible to do some of it using
something like JPE or JPype that allow you to bridge the Java and Python
runtime environments, or GCJ+SWIG that allow you to compile Java code to
C++ and link it to Python. In practice, it would take you a lot less time
to just learn Python and use it in the first place. ;-)
If there is some Java library that you absolutely need to use in your
parcel, then using something like GCJ or even this (a Java->Python bytecode
translator) might be the best thing:
http://www.boddie.org.uk/python/javaclass.html
But the bulk of your parcel will still need to be written in Python, since
that's how your persistent items' schema will be defined.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev