posted 16 years ago
Hey,
In some methods i need to pass to Audit the invocation context. by invocation context i mean to the class name, method name, arguments values.
I want to create a generic Audit method, something like this:
Class Hotel::
Public void orderRoom(Date start,Date end){
//I need here a code that know how to create invocation context (class name, method name , list of arguments values) in a generic way
Audit.audit(�); //the audit get list of objects
}
By using the �Throwable� (you are more than welcome to say another way to do this, because I don�t love this trick) I can get the class and the method name, but I don�t know how can I get the argument values?
Thank you