I wont be extending classes or interface since I have to generate classes on the fly, reading some arbitrary xml schemas at runtime.
I'm thinking of just parsing the xml schema in clojure and generating a list (which would contain a text representation of how I would generate a normal java class in clojure) and then evaling it. Is this feasible???? Thanks, On Fri, Jun 19, 2009 at 12:28 AM, hoeck <i_am_wea...@kittymail.com> wrote: > > Hi, > > if your generated classes implement a varying but finite set of > interfaces, or extend a given class, then using the proxy macro would > be the easiest way to generate them at runtime: > http://clojure.org/java_interop#toc26 > or type (doc proxy) at the commandline. > > If your generated classes extend a fixed set of class/interfaces, and > you have code which uses its own classloader and needs plain *.class > files to load, then genclass may be interesting: > http://clojure.org/compilation > > If you want to generate arbitrary classes, then the only convenient > way I know of is the clojure way, using some bytecode generation > framework > regards, erik > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---