I've got a class which references a java.lang.reflect.Method
, and I need to store that class and that reference.
Does anybody know how to do it?
It seems to me I can't do it straightforward, but I think I could decompose a java.lang.reflect.Method
into class-name, method-name, class-name-parameters, and store those Strings. In that way, I could re-generate the Method
object from them when loading it.
Does it make sense? In that case, any idea about how to do it?