I think this question is highly important. "Dependency Injection concept need not be restricted to Object Oriented Programming!!!". It should be possible to dependency inject arbitary code blocks to other arbitary code blocks. This is what a future language would do as per my strong belief.
--------free of the trappings of OO, types and inheritance------ -Hari Sujathan On Jun 4, 3:34 am, Stuart Halloway <stuart.hallo...@gmail.com> wrote: > I think Clojure addresses (at the language level, and better) all the > issues that Spring addresses. So in the long run Spring is unnecessary > in a Clojure world. > > But in the short run you have the codebase you have, and the skills > that you have. So if it makes sense, do it. > > Stu > > > At this point I have no particular use case. We are solely a Spring > > shop where we build Spring web apps and we use Groovy beans (using > > dynamic lang support in Spring) for some stuff like MVC controllers, > > XML parsing, etc. I thought that it would be interesting to > > incorporate some Clojure beans for some tasks (perhaps some > > concurrent processing tasks, etc.) Does it even make saense? > > > Anyway, if someone would come up with a way to integrate Clojure > > code into Spring ApplicationContext and show the example, that would > > be interesting. > > > Best regards, > > Dmitriy. > > > 2009/6/3 Luc Prefontaine <lprefonta...@softaddicts.ca> > > We did the reverse (using Spring directly from Clojure) without any > > difficulty. > > Never thought about creating Clojure beans however. > > > We had already some code to bootstrap Spring from Java. > > Just called it from Clojure. > > > We wanted to drop Java as much as possible but did not want to loose > > some of the low level > > stuff we wrote in Java. > > > Being curious, can you shed any light of the use you would make of > > Clojure beans ? > > > Luc P. > > > On Wed, 2009-06-03 at 09:02 -0700, Dmitriy Kopylenko wrote: > > >> Hello. > > >> I'm just wondering is there a way to create Clojure beans and inject > >> them into other Spring beans (given that Clojure code implements Java > >> interface) inside Spring ApplicationContext, similar to other dynamic > >> langs support: > > >>http://static.springframework.org/spring/docs/2.5.x/reference/dynamic... > > >> ? > > >> Thanks, > >> Dmitriy. > > > Luc Préfontaine > > > Armageddon was yesterday, today we have a real problem... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---