Skip to content

Instantly share code, notes, and snippets.

@skuro
Created September 27, 2011 22:38
Show Gist options
  • Select an option

  • Save skuro/1246465 to your computer and use it in GitHub Desktop.

Select an option

Save skuro/1246465 to your computer and use it in GitHub Desktop.
Initialize Clojure ns from Spring
<bean id="bootstrap_namespaces" parent="initClojureNs">
<property name="namespaces">
<list>
<value>/custom/ns</value>
</list>
</property>
</bean>
(ns interop)
(gen-class :name interop.ClojureInit
:prefix "ci-"
:methods [[setNamespaces [java.util.List] void]])
(defn ci-setNamespaces
"Bootstraps the given namespaces"
[this ns-list]
(apply load ns-list))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment