I want to generate a class (not an object) via proxy
, and the class will be instantiated later.
The examples I have found of Clojure's proxy method seem to largely deal with the most common java inner class scenario, i.e., when we are only defining a class because we want to create an instance of it.
In my case, I want to define a true class - one which can be loaded later on.. But I'd like to define it without having to compile it using the complexity of gen-class
.
Would that be possible at all? Or is gen-class
a requirement?