Suppose you have a Library L.jar which contains class C.class and a method m.
Now, you have a project which imports this library and uses the m method.
In the project there is class X with method mX.
What I want to do is to somehow monitor all invocations of the method m and invoke the method mX whenever method m gets invoked.
If I can somehow read the parameters which get passed to method m when invoking it, that would be awesome.
Is this possible in Java and if so, how to do it?