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.
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 po
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
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
This link might help. Came across this weblog titled "Practical
Clojure with SWT, JUnit and Spring":
http://berlinbrowndev.blogspot.com/2009/04/practical-clojure-with-swt-junit-and.html
-Al
On Wed, Jun 3, 2009 at 6:02 PM, Dmitriy Kopylenko
wrote:
>
> Hello.
>
> I'm just wondering is there a wa
Thanks Laurent. So it is indeed possible. I need to dive into Clojure
to understand it better (I only started looking into Clojure few days
ago). Are there any Maven plugins or Ant tasks for doing AOT
compilation?
Perhaps a small example of this set up (with Spring bean) would be
terrific
Hi,
Provided that the beans you would like to see implemented via clojure
must conform to a preexisting interface, I guess there would be no
need at all to leverage to dynamic-language part of spring.
Here is a recipe (out of my head, not tested) for how this would work:
1. identify the interf
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/dyn