I want to create a type of hook where I could dynamically attach to an objects methods to detect when the method is being run. I want to be able to have a pre and post execute.
Is it possible?
Where would I start?
Printable View
I want to create a type of hook where I could dynamically attach to an objects methods to detect when the method is being run. I want to be able to have a pre and post execute.
Is it possible?
Where would I start?
As far as I know this is not possible. There is no way to receive notification of a method unless something is built into the method to notify you (some event model).