Created
September 27, 2011 22:38
-
-
Save skuro/1246465 to your computer and use it in GitHub Desktop.
Initialize Clojure ns from Spring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <bean id="bootstrap_namespaces" parent="initClojureNs"> | |
| <property name="namespaces"> | |
| <list> | |
| <value>/custom/ns</value> | |
| </list> | |
| </property> | |
| </bean> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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