I’m just wondering if it’s possible to create Spring managed beans backed by Clojure code (Clojure namespace I guess, would implement regular Java interface)? If so, the example would be appreciated.
Thanks,
Dmitriy.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I haven’t tried that yet, but section 3.3 of Programming Clojure explains how to create class files with the
:gen-classform. Use it with:implementsand:extends, build a JAR from your classes and import them into your Spring project. That should – theoretically – do the trick.I’d be very interested in any example code, too, by the way.