Hi,
I'm working on a tool where I am embedding the Rhino JavaScript engine
within Clojure and exposing an API to JavaScript. Rhino has support for
exposing Java objects directly.
I want to define this Java API in Clojure, but as I've understood it there is no
way in Clojure to create this at runtime. I could use proxy, but then it's only
possible to implement already existing interfaces.
The alternative is gen-class, but then I need to first compile and add
the classes to my class path, and for me that doesn't match well with
the way I like to develop using Emacs and Slime. I want to implement
one method at the time and "play around" without having to restart the
JVM between each change.
Is there anything I'm missing, or will there be a way in the future to create
dynamic Java objects at runtime?
--
Sverre Johansen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---