This should help: http://blog.jayfields.com/2011/01/clojure-using-java-inner-classes.html
Sorry for the short response - I'm on my phone, so I can't really put together a more detailed email. Sent from my iPhone On May 24, 2012, at 9:21 AM, Jason S <jsonse...@gmail.com> wrote: > Hello , > I am trying to make a clojure wrapper for the adwords java api but I > am having trouble with some of the code. > Creating simple objects is fairly straightforward but when it comes to > interfaces quite frankly Clojure is not very intuitive. > I could not find very good examples for how to create them. I am also > confused as when to use proxy or reify. > > So the java code looks like this: > AdGroupServiceInterface adGroupService = > user.getService(AdWordsService.V201109.ADGROUP_SERVICE); > > AdwordsService has constants which I try to code like this: > (def ad-service (AdwordsService/V201109/ADGROUP_SERVICE)) > ;;this fails with no such namespace > > Do I use proxy here or reify and how do set the service on the > adGroupService ? > Any pointers in the right direction is welcome. > > > /BR > Jason > > > > > -- > 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 -- 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