How to store a java.lang.reflect.Method into a database through Hibernate
I´ve got a class which references a Method (java.lang.reflect), 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?
Thanks in advance! Diego.
No comments:
Post a Comment