https://github.com/tangrammer/defrecord-wrapper
This library lets you apply middleware to protocol implementations of clojure.core/defrecord in the same way as AOP does. The idea behind defrecord-wrapper is pretty simple. It creates another defrecord instance (wrapper) that will contain the original one (wrapped), and uses pattern matching (over protocol namespace, function name and arguments number) to apply middleware. I'm not sure if there is another library with the same proposal or the way (clojure.core/extend) to achieve that is ok, so I'm really looking forward your comments and suggestions -- 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.