Hi Georgi,

Have you seen this thread?
https://groups.google.com/forum/#!topic/clojure/0hKOFQXAwRc

Shantanu

On Wednesday, 5 August 2015 17:28:42 UTC+5:30, Georgi Danov wrote:
>
> Hi,
>  I have had good 6 months of fun with Clojure and have big appreciation 
> for it's way of doing things. Coming from the Java/Spring world however, I 
> still have this nagging desire to be able to annotate functions and have 
> some preprocessor pick up these annotations and decorate the code 
> accordingly. Let me illustrate it:
>
> In Java + Spring
> @Transactional
> public void someFunction(){...}
>
> the Spring core container has excellent support for preprocessors to 
> instrument this function with some advice.
>
> ---------
>
> I wish I could do that in Clojure:
>
> (defn ^:transactional someFunction [...] ...)
>
> and then have somehow means to decorate someFunction (yes, I am aware 
> there is no container)
>
> I have read some blog posts (about dependency injection in the context of 
> testing clojure) that discuss *alter-var-root,* but that looks like very 
> brutal approach.
>
> What would be the advice on that? I am even happy to go with solution that 
> involves some micro-container spring-like approach.
>
> Cheers
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to