Created
March 20, 2010 08:16
-
-
Save maxhodak/338553 to your computer and use it in GitHub Desktop.
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
(defmacro import-headers [class-name] | |
`(do | |
(import ~(symbol (format "com.myfit.%s.thrift.%s" class-name class-name))) | |
(import ~(symbol (format "com.myfit.%s.thrift.ServerImpl" class-name))))) | |
(defn run [class-name addr port] | |
(import-headers class-name) | |
...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment